public EntityQuery <TBase> Create(TBase item) { OperationType = CRUDOperationTypes.Create; EntityTable table = Mapping.TypeTableMapping[baseType]; table.StageForInsertion(item as IEntity); return(this); }
public EntityQuery <TBase> Create(List <TBase> items) { OperationType = CRUDOperationTypes.Create; EntityTable table = Mapping.TypeTableMapping[baseType]; foreach (IEntity item in items) { table.StageForInsertion(item as IEntity); } return(this); }