/// <summary> setups the sync logic for member _technicianProfile</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncTechnicianProfile(IEntity2 relatedEntity) { if (_technicianProfile != relatedEntity) { DesetupSyncTechnicianProfile(true, true); _technicianProfile = (TechnicianProfileEntity)relatedEntity; base.PerformSetupSyncRelatedEntity(_technicianProfile, new PropertyChangedEventHandler(OnTechnicianProfilePropertyChanged), "TechnicianProfile", PinChangelogEntity.Relations.TechnicianProfileEntityUsingTechnicianId, true, new string[] { }); } }
/// <summary> Initializes the class members</summary> protected virtual void InitClassMembers() { _organizationRoleUser = null; _technicianProfile = null; PerformDependencyInjection(); // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers // __LLBLGENPRO_USER_CODE_REGION_END OnInitClassMembersComplete(); }
protected PinChangelogEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if (SerializationHelper.Optimization != SerializationOptimization.Fast) { _organizationRoleUser = (OrganizationRoleUserEntity)info.GetValue("_organizationRoleUser", typeof(OrganizationRoleUserEntity)); if (_organizationRoleUser != null) { _organizationRoleUser.AfterSave += new EventHandler(OnEntityAfterSave); } _technicianProfile = (TechnicianProfileEntity)info.GetValue("_technicianProfile", typeof(TechnicianProfileEntity)); if (_technicianProfile != null) { _technicianProfile.AfterSave += new EventHandler(OnEntityAfterSave); } base.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); } // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
/// <summary> Removes the sync logic for member _technicianProfile</summary> /// <param name="signalRelatedEntity">If set to true, it will call the related entity's UnsetRelatedEntity method</param> /// <param name="resetFKFields">if set to true it will also reset the FK fields pointing to the related entity</param> private void DesetupSyncTechnicianProfile(bool signalRelatedEntity, bool resetFKFields) { base.PerformDesetupSyncRelatedEntity(_technicianProfile, new PropertyChangedEventHandler(OnTechnicianProfilePropertyChanged), "TechnicianProfile", PinChangelogEntity.Relations.TechnicianProfileEntityUsingTechnicianId, true, signalRelatedEntity, "PinChangelog", resetFKFields, new int[] { (int)PinChangelogFieldIndex.TechnicianId }); _technicianProfile = null; }
/// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary> /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param> /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns> public override RelationCollection GetRelationsForFieldOfType(string fieldName) { return(TechnicianProfileEntity.GetRelationsForField(fieldName)); }