public override void ReloadReferences() { // Do not reload references if the current object has been deleted. // TODO: enable when MemoryContext uses MemoryDataObjects //if (this.ObjectState == DataObjectState.Deleted) return; base.ReloadReferences(); // fix direct object references if (_fk_Identity.HasValue) { this.Identity = ((Zetbox.App.Base.IdentityNHibernateImpl)OurContext.FindPersistenceObject <Zetbox.App.Base.Identity>(_fk_Identity.Value)); } else { this.Identity = null; } if (_fk_Parent.HasValue) { this.Parent = ((Zetbox.App.Test.SecurityTestParentNHibernateImpl)OurContext.FindPersistenceObject <Zetbox.App.Test.SecurityTestParent>(_fk_Parent.Value)); } else { this.Parent = null; } }
public override void ReloadReferences() { // Do not reload references if the current object has been deleted. // TODO: enable when MemoryContext uses MemoryDataObjects //if (this.ObjectState == DataObjectState.Deleted) return; base.ReloadReferences(); // fix direct object references if (_fk_DisplayedTypeAssembly.HasValue) { this.DisplayedTypeAssembly = ((Zetbox.App.Base.AssemblyNHibernateImpl)OurContext.FindPersistenceObject <Zetbox.App.Base.Assembly>(_fk_DisplayedTypeAssembly.Value)); } else { this.DisplayedTypeAssembly = null; } if (_fk_VisualTree.HasValue) { this.VisualTree = ((Zetbox.App.GUI.VisualNHibernateImpl)OurContext.FindPersistenceObject <Zetbox.App.GUI.Visual>(_fk_VisualTree.Value)); } else { this.VisualTree = null; } }
public override void ReloadReferences() { // Do not reload references if the current object has been deleted. // TODO: enable when MemoryContext uses MemoryDataObjects //if (this.ObjectState == DataObjectState.Deleted) return; base.ReloadReferences(); // fix direct object references if (_fk_Owner.HasValue) { this.Owner = ((Zetbox.App.Base.IdentityNHibernateImpl)OurContext.FindPersistenceObject <Zetbox.App.Base.Identity>(_fk_Owner.Value)); } else { this.Owner = null; } if (_fk_guid_Type.HasValue) { this.Type = ((Zetbox.App.Base.ObjectClassNHibernateImpl)OurContext.FindPersistenceObject <Zetbox.App.Base.ObjectClass>(_fk_guid_Type.Value)); } else if (_fk_Type.HasValue) { this.Type = ((Zetbox.App.Base.ObjectClassNHibernateImpl)OurContext.FindPersistenceObject <Zetbox.App.Base.ObjectClass>(_fk_Type.Value)); } else { this.Type = null; } }
public override void ReloadReferences() { // Do not reload references if the current object has been deleted. // TODO: enable when MemoryContext uses MemoryDataObjects //if (this.ObjectState == DataObjectState.Deleted) return; base.ReloadReferences(); // fix direct object references if (_fk_guid_ControlKind.HasValue) { this.ControlKind = ((Zetbox.App.GUI.ControlKindNHibernateImpl)OurContext.FindPersistenceObject <Zetbox.App.GUI.ControlKind>(_fk_guid_ControlKind.Value)); } else if (_fk_ControlKind.HasValue) { this.ControlKind = ((Zetbox.App.GUI.ControlKindNHibernateImpl)OurContext.FindPersistenceObject <Zetbox.App.GUI.ControlKind>(_fk_ControlKind.Value)); } else { this.ControlKind = null; } if (_fk_guid_ControlRef.HasValue) { this.ControlRef = ((Zetbox.App.Base.TypeRefNHibernateImpl)OurContext.FindPersistenceObject <Zetbox.App.Base.TypeRef>(_fk_guid_ControlRef.Value)); } else if (_fk_ControlRef.HasValue) { this.ControlRef = ((Zetbox.App.Base.TypeRefNHibernateImpl)OurContext.FindPersistenceObject <Zetbox.App.Base.TypeRef>(_fk_ControlRef.Value)); } else { this.ControlRef = null; } if (_fk_guid_Module.HasValue) { this.Module = ((Zetbox.App.Base.ModuleNHibernateImpl)OurContext.FindPersistenceObject <Zetbox.App.Base.Module>(_fk_guid_Module.Value)); } else if (_fk_Module.HasValue) { this.Module = ((Zetbox.App.Base.ModuleNHibernateImpl)OurContext.FindPersistenceObject <Zetbox.App.Base.Module>(_fk_Module.Value)); } else { this.Module = null; } }
public override void ReloadReferences() { // Do not reload references if the current object has been deleted. // TODO: enable when MemoryContext uses MemoryDataObjects //if (this.ObjectState == DataObjectState.Deleted) return; base.ReloadReferences(); // fix direct object references if (_fk_OneEnd.HasValue) { this.OneEnd = ((Zetbox.App.Test.OrderedOneEndNHibernateImpl)OurContext.FindPersistenceObject <Zetbox.App.Test.OrderedOneEnd>(_fk_OneEnd.Value)); } else { this.OneEnd = null; } }
public override void ReloadReferences() { // Do not reload references if the current object has been deleted. // TODO: enable when MemoryContext uses MemoryDataObjects //if (this.ObjectState == DataObjectState.Deleted) return; base.ReloadReferences(); // fix direct object references if (_fk_guid_Enumeration.HasValue) { this.Enumeration = ((Zetbox.App.Base.EnumerationNHibernateImpl)OurContext.FindPersistenceObject <Zetbox.App.Base.Enumeration>(_fk_guid_Enumeration.Value)); } else if (_fk_Enumeration.HasValue) { this.Enumeration = ((Zetbox.App.Base.EnumerationNHibernateImpl)OurContext.FindPersistenceObject <Zetbox.App.Base.Enumeration>(_fk_Enumeration.Value)); } else { this.Enumeration = null; } }
public override void ReloadReferences() { // Do not reload references if the current object has been deleted. // TODO: enable when MemoryContext uses MemoryDataObjects //if (this.ObjectState == DataObjectState.Deleted) return; base.ReloadReferences(); // fix direct object references if (_fk_guid_DefaultPropertyViewModelDescriptor.HasValue) { this.DefaultPropertyViewModelDescriptor = ((Zetbox.App.GUI.ViewModelDescriptorNHibernateImpl)OurContext.FindPersistenceObject <Zetbox.App.GUI.ViewModelDescriptor>(_fk_guid_DefaultPropertyViewModelDescriptor.Value)); } else if (_fk_DefaultPropertyViewModelDescriptor.HasValue) { this.DefaultPropertyViewModelDescriptor = ((Zetbox.App.GUI.ViewModelDescriptorNHibernateImpl)OurContext.FindPersistenceObject <Zetbox.App.GUI.ViewModelDescriptor>(_fk_DefaultPropertyViewModelDescriptor.Value)); } else { this.DefaultPropertyViewModelDescriptor = null; } }