Esempio n. 1
0
 /// <summary>
 /// Performs CRUD row insert. Override to do custom insertion
 /// </summary>
 protected internal virtual int DoInsert(SqlConnection cnn, SqlTransaction transaction, Doc row, FieldFilterFunc filter = null)
 {
     checkReadOnly(row.Schema, "insert");
     return(CRUDGenerator.CRUDInsert(this, cnn, transaction, row, filter));
 }
Esempio n. 2
0
 /// <summary>
 /// Performs CRUD row insert. Override to do custom insertion
 /// </summary>
 protected internal async override Task <int> DoInsertAsync(SqlConnection cnn, SqlTransaction transaction, Doc row, FieldFilterFunc filter = null)
 {
     CheckReadOnly(row.Schema, "insert");
     return(await CRUDGenerator.CRUDInsert(this, cnn, transaction, row, filter));
 }