public SqlServerDeleteCommand(SqlServerDeleteCommand command, Expression <Func <T> > expression) : base(command.ServiceProvider, ((IWrapper <DeleteClause>)command).Value, ((IWrapper <FromClause>)command).Value, ((IWrapper <JoinClause>)command).Value, ((IWrapper <WhereClause>)command).Value) { outputClause = command.ServiceProvider.GetRequiredService <SqlServerOutputClause <T> >(); outputClause.Expression = expression; }
public virtual SqlServerDeleteCommand <T> Create <T>(IServiceProvider serviceProvider, SqlServerDeleteCommand command, Expression <Func <T> > expression) { return(new SqlServerDeleteCommand <T>(command, expression)); }