Пример #1
0
 public override LastInsertId ExecuteInsert(DbCommand cmd, string idKey)
 {
     cmd.Execute();
     cmd.Reset();
     cmd.CommandText = "select @@IDENTITY as id";
     var rez = cmd.GetRawValue();
     return new LastInsertId(rez);
 }