Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagec#
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:

Code Block
languagec#
Session.GetListByCommand<Company>(command =>
 
{
    // Customize the command to return companies.
 
});

Mit dem verfügbaren Overload kann direkt ein IDbCommand mitgegeben werden:

...