Пример #1
0
        public EntityQuery <TBase> Create(TBase item)
        {
            OperationType = CRUDOperationTypes.Create;

            EntityTable table = Mapping.TypeTableMapping[baseType];

            table.StageForInsertion(item as IEntity);

            return(this);
        }
Пример #2
0
        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);
        }