...
Code Block | ||
---|---|---|
| ||
using (var adoCommand = Session.GetAdoCommand())
{
adoCommand.CommandText = "SELECT * from QuinoIdentityUser";
using (var reader = adoCommand.ExecuteReader())
{
while (reader.Read())
{
var id = reader.GetGuid(0);
// Do something with the returned data.
}
}
} |
Abfragen können auch direkt auf existierende Klassen gemappt werden:
...