예제 #1
0
 public static int Delete(this SqlDatabase db, object item, string id1 = null, string id2 = null)
 {
     return(db.ExecuteNonQuery(item.ToSqlDelete(id1, id2), item.ToSqlParameter()));
 }
예제 #2
0
 public static int Insert(this SqlDatabase db, object item, string pk = null)
 {
     return(db.ExecuteNonQuery(item.ToSqlInsert(pk), item.ToSqlParameter()));
 }