Пример #1
0
        public PostgresInsertValuesCommand(IServiceProvider serviceProvider, PostgresInsertValuesCommand <TColumns> command, Expression <Func <TResult> > expression)
            : base(serviceProvider, ((IWrapper <InsertClause <TColumns> >)command).Value, ((IWrapper <OnConflictClause>)command).Value)
        {
            returningClause            = serviceProvider.GetRequiredService <PostgresReturningClause <TResult> >();
            returningClause.Expression = expression;

            valuesClause = ((IWrapper <ValuesClause <TColumns> >)command).Value;
        }
Пример #2
0
 public PostgresInsertValuesCommand <TColumns, TResult> Create <TColumns, TResult>(IServiceProvider serviceProvider, PostgresInsertValuesCommand <TColumns> command, Expression <Func <TResult> > expression)
 {
     return(new PostgresInsertValuesCommand <TColumns, TResult>(serviceProvider, command, expression));
 }