public override object CreateInstance(Type ObjectType) { var Object = UnitOfWork.GetClassInfo(ObjectType).CreateNewObject(UnitOfWork); DataSpacesObjects.Add(Object); return(Object); }
public override T CreateInstance <T>() { var Object = Activator.CreateInstance <T>(); DataSpacesObjects.Add(Object); return(Object); }
public override object CreateInstance(Type ObjectType) { var Object = Activator.CreateInstance(ObjectType); DataSpacesObjects.Add(Object); return(Object); }
public override T CreateInstance <T>() { var Object = (T)UnitOfWork.GetClassInfo <T>().CreateNewObject(UnitOfWork); DataSpaceEntityHelper.Link(ref Object, this); DataSpacesObjects.Add(Object); return(Object); }
public override T CreateInstance <T>() { var Instance = Activator.CreateInstance <T>(); DataSpaceProvider.Context.Set <T>().Add(Instance); DataSpacesObjects.Add(Instance); return(Instance); }