Ejemplo n.º 1
0
        public async override Task <int> SelectInsertAsync <P>(Expression <Func <K, P> > expression, CancellationToken cancellationToken = default(CancellationToken))
        {
            InsertSelector selector     = LambdaExpressionExtend.CreateAggregateInsertSelector(expression, Model);
            QueryCommand   queryCommand = _context.Database.SelectInsertWithAggregate(_context, selector, Model, _query, _having, _order);

            return(await _context.ExecuteNonQueryAsync(queryCommand.Command, _level, cancellationToken));
        }
Ejemplo n.º 2
0
        public override int SelectInsert <P>(Expression <Func <K, P> > expression)
        {
            InsertSelector selector     = LambdaExpressionExtend.CreateAggregateInsertSelector(expression, Model);
            QueryCommand   queryCommand = _context.Database.SelectInsertWithAggregate(_context, selector, Model, _query, _having, _order);

            return(_context.ExecuteNonQuery(queryCommand.Command, _level));
        }