DynamicList
Example method DynamicList.
Documentation
This example uses Oracle HR schema.
Code
Method that returns a list of dynamic objects in all fields based on informed SQL statement.
// Metodo que retorna uma lista de objetos dinamicos com todos os campos baseado na instrução SQL informada.
// Method that returns a list of dynamic objects in all fields based on informed SQL statement.
// param name="strQuery" Instrução SQL / SQL Statement
// param name="DataBase" Banco de Dados / DataBase
// param name="EnablePascalCase" Habilita Formamatação em Pascal Case / Formatting enables Pascal Case
using (var Ecrud = new ECRUD.OracleDynamic())
{
StringBuilder sbQuery = new StringBuilder().Append("SELECT * FROM HR.EMPLOYEES WHERE DEPARTMENT_ID = 60");
var Employees = Ecrud.DynamicList(sbQuery.ToString(), DataBase.HR, true);
}