public SqlServerInsertValuesCommand(IServiceProvider serviceProvider, SqlServerInsertValuesCommand <TColumns> command) : base(serviceProvider, ((IWrapper <InsertClause <TColumns> >)command).Value, ((IWrapper <OnConflictClause>)command).Value) { SqlServerOutputClause = serviceProvider.GetRequiredService <SqlServerOutputClause <TResult> >(); valuesClause = command.ValuesClause; }
public SqlServerInsertValuesCommand <TColumns, TResult> Create <TColumns, TResult>(IServiceProvider serviceProvider, SqlServerInsertValuesCommand <TColumns> command, Expression <Func <TResult> > expression) { return(new SqlServerInsertValuesCommand <TColumns, TResult>(serviceProvider, command)); }