예제 #1
0
 /// <summary>
 /// Performs CRUD row upsert. Override to do custom upsertion
 /// </summary>
 protected internal virtual int DoUpsert(SqlConnection cnn, SqlTransaction transaction, Doc row, FieldFilterFunc filter = null)
 {
     checkReadOnly(row.Schema, "upsert");
     return(CRUDGenerator.CRUDUpsert(this, cnn, transaction, row, filter));
 }
예제 #2
0
 /// <summary>
 /// Performs CRUD row upsert. Override to do custom upsertion
 /// </summary>
 protected internal async override Task <int> DoUpsertAsync(SqlConnection cnn, SqlTransaction transaction, Doc row, FieldFilterFunc filter = null)
 {
     CheckReadOnly(row.Schema, "upsert");
     return(await CRUDGenerator.CRUDUpsert(this, cnn, transaction, row, filter));
 }