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