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