Example #1
0
        public int EvaluateInMemory(IQueryRunner runner)
        {
            var lastNonQueryResult = 0;

            var items = Parent.InMemorySelect(runner);

            foreach (var item in items)
            {
                var fromRow = Parent.FromRowMapping[item];
                var builder = new InsertBuilder <T>();
                InsertFunction(item, builder);

                FromQuery.UpdateObject(fromRow, builder.BuilderType, builder);
                lastNonQueryResult++;
            }

            return(lastNonQueryResult);
        }
Example #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);
        }
Example #3
0
 public InsertBuilder <T> Values(InsertBuilder <T> other)
 {
     Selectors.AddRange(other.Selectors);
     return(this);
 }