public override void UpdateParent(string propertyName, IDataObject parentObj) { switch (propertyName) { case "GetErrorTextInvocation": { var __oldValue = (Zetbox.App.Base.ConstraintInvocationNHibernateImpl)OurContext.AttachAndWrap(this.Proxy.GetErrorTextInvocation); var __newValue = (Zetbox.App.Base.ConstraintInvocationNHibernateImpl)parentObj; NotifyPropertyChanging("GetErrorTextInvocation", __oldValue, __newValue); this.Proxy.GetErrorTextInvocation = __newValue == null ? null : __newValue.Proxy; NotifyPropertyChanged("GetErrorTextInvocation", __oldValue, __newValue); } break; case "IsValidInvocation": { var __oldValue = (Zetbox.App.Base.ConstraintInvocationNHibernateImpl)OurContext.AttachAndWrap(this.Proxy.IsValidInvocation); var __newValue = (Zetbox.App.Base.ConstraintInvocationNHibernateImpl)parentObj; NotifyPropertyChanging("IsValidInvocation", __oldValue, __newValue); this.Proxy.IsValidInvocation = __newValue == null ? null : __newValue.Proxy; NotifyPropertyChanged("IsValidInvocation", __oldValue, __newValue); } break; default: base.UpdateParent(propertyName, parentObj); break; } }
public override void UpdateParent(string propertyName, IDataObject parentObj) { switch (propertyName) { case "Identity": { var __oldValue = (Zetbox.App.Base.IdentityNHibernateImpl)OurContext.AttachAndWrap(this.Proxy.Identity); var __newValue = (Zetbox.App.Base.IdentityNHibernateImpl)parentObj; NotifyPropertyChanging("Identity", __oldValue, __newValue); this.Proxy.Identity = __newValue == null ? null : __newValue.Proxy; NotifyPropertyChanged("Identity", __oldValue, __newValue); } break; case "Parent": { var __oldValue = (Zetbox.App.Test.SecurityTestParentNHibernateImpl)OurContext.AttachAndWrap(this.Proxy.Parent); var __newValue = (Zetbox.App.Test.SecurityTestParentNHibernateImpl)parentObj; NotifyPropertyChanging("Parent", __oldValue, __newValue); this.Proxy.Parent = __newValue == null ? null : __newValue.Proxy; NotifyPropertyChanged("Parent", __oldValue, __newValue); } break; default: base.UpdateParent(propertyName, parentObj); break; } }
public override void UpdateParent(string propertyName, IDataObject parentObj) { switch (propertyName) { case "TestCustomObjects_Nav": { var __oldValue = (Zetbox.App.Test.TestCustomObjectNHibernateImpl)OurContext.AttachAndWrap(this.Proxy.TestCustomObjects_Nav); var __newValue = (Zetbox.App.Test.TestCustomObjectNHibernateImpl)parentObj; NotifyPropertyChanging("TestCustomObjects_Nav", __oldValue, __newValue); this.Proxy.TestCustomObjects_Nav = __newValue == null ? null : __newValue.Proxy; NotifyPropertyChanged("TestCustomObjects_Nav", __oldValue, __newValue); } break; case "TestCustomObjects_One_Nav": { var __oldValue = (Zetbox.App.Test.TestCustomObjectNHibernateImpl)OurContext.AttachAndWrap(this.Proxy.TestCustomObjects_One_Nav); var __newValue = (Zetbox.App.Test.TestCustomObjectNHibernateImpl)parentObj; NotifyPropertyChanging("TestCustomObjects_One_Nav", __oldValue, __newValue); this.Proxy.TestCustomObjects_One_Nav = __newValue == null ? null : __newValue.Proxy; NotifyPropertyChanged("TestCustomObjects_One_Nav", __oldValue, __newValue); } break; default: base.UpdateParent(propertyName, parentObj); break; } }
public override void UpdateParent(string propertyName, IDataObject parentObj) { switch (propertyName) { case "Blob": { var __oldValue = (Zetbox.App.Base.BlobNHibernateImpl)OurContext.AttachAndWrap(this.Proxy.Blob); var __newValue = (Zetbox.App.Base.BlobNHibernateImpl)parentObj; NotifyPropertyChanging("Blob", __oldValue, __newValue); this.Proxy.Blob = __newValue == null ? null : __newValue.Proxy; NotifyPropertyChanged("Blob", __oldValue, __newValue); } break; case "Module": { var __oldValue = (Zetbox.App.Base.ModuleNHibernateImpl)OurContext.AttachAndWrap(this.Proxy.Module); var __newValue = (Zetbox.App.Base.ModuleNHibernateImpl)parentObj; NotifyPropertyChanging("Module", __oldValue, __newValue); this.Proxy.Module = __newValue == null ? null : __newValue.Proxy; NotifyPropertyChanged("Module", __oldValue, __newValue); } break; default: base.UpdateParent(propertyName, parentObj); break; } }
public override void ToStream(Zetbox.API.ZetboxStreamWriter binStream, HashSet <IStreamable> auxObjects, bool eagerLoadLists) { base.ToStream(binStream, auxObjects, eagerLoadLists); // it may be only an empty shell to stand-in for unreadable data if (!CurrentAccessRights.HasReadRights()) { return; } binStream.Write(this.Proxy.ControlKind != null ? OurContext.GetIdFromProxy(this.Proxy.ControlKind) : (int?)null); binStream.Write(this.Proxy.ControlRef != null ? OurContext.GetIdFromProxy(this.Proxy.ControlRef) : (int?)null); binStream.Write(this._isExportGuidSet); if (this._isExportGuidSet) { binStream.Write(this.Proxy.ExportGuid); } binStream.Write(this.Proxy.Module != null ? OurContext.GetIdFromProxy(this.Proxy.Module) : (int?)null); binStream.Write(eagerLoadLists); if (eagerLoadLists && auxObjects != null) { foreach (var obj in SupportedViewModels) { auxObjects.Add(obj); } foreach (var relEntry in this.Proxy.SupportedViewModels) { auxObjects.Add(OurContext.AttachAndWrap(relEntry)); } } binStream.Write((int?)Proxy.Toolkit); }
public override void UpdateParent(string propertyName, IDataObject parentObj) { switch (propertyName) { case "DisplayedTypeAssembly": { var __oldValue = (Zetbox.App.Base.AssemblyNHibernateImpl)OurContext.AttachAndWrap(this.Proxy.DisplayedTypeAssembly); var __newValue = (Zetbox.App.Base.AssemblyNHibernateImpl)parentObj; NotifyPropertyChanging("DisplayedTypeAssembly", __oldValue, __newValue); this.Proxy.DisplayedTypeAssembly = __newValue == null ? null : __newValue.Proxy; NotifyPropertyChanged("DisplayedTypeAssembly", __oldValue, __newValue); } break; case "VisualTree": { var __oldValue = (Zetbox.App.GUI.VisualNHibernateImpl)OurContext.AttachAndWrap(this.Proxy.VisualTree); var __newValue = (Zetbox.App.GUI.VisualNHibernateImpl)parentObj; NotifyPropertyChanging("VisualTree", __oldValue, __newValue); this.Proxy.VisualTree = __newValue == null ? null : __newValue.Proxy; NotifyPropertyChanged("VisualTree", __oldValue, __newValue); } break; default: base.UpdateParent(propertyName, parentObj); break; } }
public override void UpdateParent(string propertyName, IDataObject parentObj) { switch (propertyName) { case "Owner": { var __oldValue = (Zetbox.App.Base.IdentityNHibernateImpl)OurContext.AttachAndWrap(this.Proxy.Owner); var __newValue = (Zetbox.App.Base.IdentityNHibernateImpl)parentObj; NotifyPropertyChanging("Owner", __oldValue, __newValue); this.Proxy.Owner = __newValue == null ? null : __newValue.Proxy; NotifyPropertyChanged("Owner", __oldValue, __newValue); } break; case "Type": { var __oldValue = (Zetbox.App.Base.ObjectClassNHibernateImpl)OurContext.AttachAndWrap(this.Proxy.Type); var __newValue = (Zetbox.App.Base.ObjectClassNHibernateImpl)parentObj; NotifyPropertyChanging("Type", __oldValue, __newValue); this.Proxy.Type = __newValue == null ? null : __newValue.Proxy; NotifyPropertyChanged("Type", __oldValue, __newValue); } break; default: base.UpdateParent(propertyName, parentObj); break; } }
public override void UpdateParent(string propertyName, IDataObject parentObj) { switch (propertyName) { case "CompoundObjectDefinition": { var __oldValue = (Zetbox.App.Base.CompoundObjectNHibernateImpl)OurContext.AttachAndWrap(this.Proxy.CompoundObjectDefinition); var __newValue = (Zetbox.App.Base.CompoundObjectNHibernateImpl)parentObj; NotifyPropertyChanging("CompoundObjectDefinition", __oldValue, __newValue); this.Proxy.CompoundObjectDefinition = __newValue == null ? null : __newValue.Proxy; NotifyPropertyChanged("CompoundObjectDefinition", __oldValue, __newValue); } break; default: base.UpdateParent(propertyName, parentObj); break; } }
public override void UpdateParent(string propertyName, IDataObject parentObj) { switch (propertyName) { case "ObjectProp": { var __oldValue = (Zetbox.App.Projekte.KundeNHibernateImpl)OurContext.AttachAndWrap(this.Proxy.ObjectProp); var __newValue = (Zetbox.App.Projekte.KundeNHibernateImpl)parentObj; NotifyPropertyChanging("ObjectProp", __oldValue, __newValue); this.Proxy.ObjectProp = __newValue == null ? null : __newValue.Proxy; NotifyPropertyChanged("ObjectProp", __oldValue, __newValue); } break; default: base.UpdateParent(propertyName, parentObj); break; } }
public override void UpdateParent(string propertyName, IDataObject parentObj) { switch (propertyName) { case "DefaultPropertyViewModelDescriptor": { var __oldValue = (Zetbox.App.GUI.ViewModelDescriptorNHibernateImpl)OurContext.AttachAndWrap(this.Proxy.DefaultPropertyViewModelDescriptor); var __newValue = (Zetbox.App.GUI.ViewModelDescriptorNHibernateImpl)parentObj; NotifyPropertyChanging("DefaultPropertyViewModelDescriptor", __oldValue, __newValue); this.Proxy.DefaultPropertyViewModelDescriptor = __newValue == null ? null : __newValue.Proxy; NotifyPropertyChanged("DefaultPropertyViewModelDescriptor", __oldValue, __newValue); } break; default: base.UpdateParent(propertyName, parentObj); break; } }
public override void ToStream(Zetbox.API.ZetboxStreamWriter binStream, HashSet <IStreamable> auxObjects, bool eagerLoadLists) { base.ToStream(binStream, auxObjects, eagerLoadLists); // it may be only an empty shell to stand-in for unreadable data if (!CurrentAccessRights.HasReadRights()) { return; } binStream.Write(eagerLoadLists); if (eagerLoadLists && auxObjects != null) { foreach (var obj in Inputs) { auxObjects.Add(obj); } foreach (var relEntry in this.Proxy.Inputs) { auxObjects.Add(OurContext.AttachAndWrap(relEntry)); } } binStream.Write(this.Proxy.ReferencedClass != null ? OurContext.GetIdFromProxy(this.Proxy.ReferencedClass) : (int?)null); }