...
The ADO.NET layer can be accessed via the related following methods:
Code Block | ||
---|---|---|
| ||
Session.GetAdoConnection(); Session.GetAdoCommand(); |
...
Code Block | ||
---|---|---|
| ||
var command = Session.GetAdoCommand(); command.CommandText = "Select * from \"Sandbox__Company\""; var list = Session.GetListByCommand<Person>(command); |
The SQL query needs to fullfil some constraints to be mapped to the Quino-Object:
...
the following constraints for a successful Quino-object mapping:
The primary key (most of the time the “Id”) of the object needs to be selected. Otherwise subsequent calls to “Save” will fail.
Columns All selected columns need to match the “name” “Name” or “SchemaIdentifier” of the a property in the class - otherwise they’re the column is not mapped.
Integration with Metadata
...