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; }
public SqlServerInsertCommand <TColumns, TResult> Create <TColumns, TResult>(IServiceProvider serviceProvider, SqlServerInsertCommand <TColumns> command, Expression <Func <TResult> > expression) { return(new SqlServerInsertCommand <TColumns, TResult>(serviceProvider, command)); }