Esempio n. 1
0
        public override object CreateInstance(Type ObjectType)
        {
            var Object = UnitOfWork.GetClassInfo(ObjectType).CreateNewObject(UnitOfWork);

            DataSpacesObjects.Add(Object);
            return(Object);
        }
Esempio n. 2
0
        public override T CreateInstance <T>()
        {
            var Object = Activator.CreateInstance <T>();

            DataSpacesObjects.Add(Object);
            return(Object);
        }
Esempio n. 3
0
        public override object CreateInstance(Type ObjectType)
        {
            var Object = Activator.CreateInstance(ObjectType);

            DataSpacesObjects.Add(Object);
            return(Object);
        }
Esempio n. 4
0
        public override T CreateInstance <T>()
        {
            var Object = (T)UnitOfWork.GetClassInfo <T>().CreateNewObject(UnitOfWork);

            DataSpaceEntityHelper.Link(ref Object, this);
            DataSpacesObjects.Add(Object);
            return(Object);
        }
Esempio n. 5
0
        public override T CreateInstance <T>()
        {
            var Instance = Activator.CreateInstance <T>();

            DataSpaceProvider.Context.Set <T>().Add(Instance);
            DataSpacesObjects.Add(Instance);
            return(Instance);
        }