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