Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 public PostgresUpdateCommand <T> Create <T>(IServiceProvider serviceProvider, PostgresUpdateCommand command, Expression <Func <T> > expression)
 {
     return(new PostgresUpdateCommand <T>(command, expression));
 }