Пример #1
0
 private InsertOrUpdateCommandBuilderSyntax(
     IDatabaseDriverRegistry drivers,
     Expression <InsertSpecificationDelegate <TEntity, TParams> > insert,
     Expression <OutputSpecificationDelegate <TEntity, TResult> > output,
     Expression <ColumnSpecificationDelegate <TEntity> > conflictColumns,
     Expression <UpdateSpecificationDelegate <TEntity, TParams> > update,
     Expression <PredicateSpecificationDelegate <TEntity, TParams> > updatePredicate
     )
 {
     this.drivers         = drivers;
     this.insert          = insert;
     this.output          = output;
     this.conflictColumns = conflictColumns;
     this.update          = update;
     this.updatePredicate = updatePredicate;
 }
Пример #2
0
 public DeleteCommandBuilderSyntax(IDatabaseDriverRegistry drivers, Expression <PredicateSpecificationDelegate <TEntity, TParams> > predicate)
 {
     this.drivers   = drivers;
     this.predicate = predicate;
 }
Пример #3
0
 public InsertOrUpdateCommandBuilderSyntax(IDatabaseDriverRegistry drivers, Expression <UpdateSpecificationDelegate <TEntity, TParams> > update)
 {
     this.drivers = drivers;
     this.update  = update;
 }
Пример #4
0
 public InsertOrUpdateCommandBuilderSyntax(IDatabaseDriverRegistry drivers, Expression <InsertSpecificationDelegate <TEntity, TParams> > insert)
 {
     this.drivers = drivers;
     this.insert  = insert;
 }
Пример #5
0
 public CommandBuilderSyntax(IDatabaseDriverRegistry drivers)
 {
     this.drivers = drivers;
 }
Пример #6
0
 /// <summary>
 /// Initializes a new instance of <see cref="DirectSqlCommandBuilder" /> using the specified database drivers.
 /// </summary>
 /// <param name="drivers">The database drivers that should be used.</param>
 public DirectSqlCommandBuilder(IDatabaseDriverRegistry drivers)
 {
     this.drivers = drivers ?? throw new ArgumentNullException(nameof(drivers));
 }