/// <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)); }
/// <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)); }