Beispiel #1
0
        public override async Task <int> SelectInsertAsync <K>(Expression <Func <T, K> > expression, CancellationToken cancellationToken = default)
        {
            var selector     = LambdaExpressionExtend.CreateInsertSelector(expression);
            var queryCommand = _context.Database.SelectInsert(_context, selector, _mapping, _query, _order, _distinct);

            return(await _context.ExecuteNonQueryAsync(queryCommand.Command, _level, cancellationToken));
        }
Beispiel #2
0
        public override int SelectInsert <K>(Expression <Func <T, K> > expression)
        {
            var selector     = LambdaExpressionExtend.CreateInsertSelector(expression);
            var queryCommand = _context.Database.SelectInsert(_context, selector, _mapping, _query, _order, _distinct);

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