示例#1
0
        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;
        }
示例#2
0
 public virtual PostgresDeleteCommand <T> Create <T>(IServiceProvider serviceProvider, PostgresDeleteCommand command, Expression <Func <T> > expression)
 {
     return(new PostgresDeleteCommand <T>(command, expression));
 }