, Massive :
public object Scalar(string sql, params object[] args) {
object result = null;
using (var conn = OpenConnection()) {
result = CreateCommand(sql, conn, args).ExecuteScalar();
}
return result;
}
sql = "select scope_identity()"
2013/02/26
Massive, .
, , "select scope_identity()", . ( , ).
table.Insert(..) Dynamic, ID, "SELECT @@IDENTITY". , (, ).