Ejemplo n.º 1
0
        public EntityQuery <TBase> Create(TBase item)
        {
            OperationType = CRUDOperationTypes.Create;

            EntityTable table = Mapping.TypeTableMapping[baseType];

            table.StageForInsertion(item as IEntity);

            return(this);
        }
Ejemplo n.º 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);
        }