Exemplo n.º 1
0
        public int EvaluateInMemory(InMemoryQueryRunner runner, out int identity)
        {
            var builder = new InsertBuilder <T>();

            InsertFunction(builder);
            FromQuery.InsertImpl(builder, out identity);
            return(1);
        }
Exemplo n.º 2
0
        public int EvaluateInMemory(InMemoryQueryRunner runner, out int identity)
        {
            var lastNonQueryResult = 0;

            identity = 0;

            var items = SelectQuery.InMemorySelect(runner);

            foreach (var item in items)
            {
                var builder = new InsertBuilder <T>();
                InsertFunction(item, builder);

                FromQuery.InsertImpl(builder, out identity);
                lastNonQueryResult++;
            }

            return(lastNonQueryResult);
        }