示例#1
0
 public SqlServerInsertCommand(IServiceProvider serviceProvider, SqlServerInsertCommand <TColumns> command)
     : base(serviceProvider, ((IWrapper <InsertClause <TColumns> >)command).Value, ((IWrapper <OnConflictClause>)command).Value)
 {
     SqlServerOutputClause = serviceProvider.GetRequiredService <SqlServerOutputClause <TResult> >();
     Values = command.Values;
 }
示例#2
0
 public SqlServerInsertCommand <TColumns, TResult> Create <TColumns, TResult>(IServiceProvider serviceProvider, SqlServerInsertCommand <TColumns> command, Expression <Func <TResult> > expression)
 {
     return(new SqlServerInsertCommand <TColumns, TResult>(serviceProvider, command));
 }