Ejemplo n.º 1
0
 /// <summary> setups the sync logic for member _auditActionType</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncAuditActionType(IEntityCore relatedEntity)
 {
     if (_auditActionType != relatedEntity)
     {
         DesetupSyncAuditActionType(true, true);
         _auditActionType = (AuditActionTypeEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity(_auditActionType, new PropertyChangedEventHandler(OnAuditActionTypePropertyChanged), "AuditActionType", SD.LLBLGen.Pro.Examples.Auditing.RelationClasses.StaticAuditInfoRelations.AuditActionTypeEntityUsingAuditActionTypeIdStatic, true, new string[] {  });
     }
 }
Ejemplo n.º 2
0
 protected AuditInfoEntity(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     if (SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _auditActionType = (AuditActionTypeEntity)info.GetValue("_auditActionType", typeof(AuditActionTypeEntity));
         if (_auditActionType != null)
         {
             _auditActionType.AfterSave += new EventHandler(OnEntityAfterSave);
         }
         _user = (UserEntity)info.GetValue("_user", typeof(UserEntity));
         if (_user != null)
         {
             _user.AfterSave += new EventHandler(OnEntityAfterSave);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }
Ejemplo n.º 3
0
 /// <summary> Removes the sync logic for member _auditActionType</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 DesetupSyncAuditActionType(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity(_auditActionType, new PropertyChangedEventHandler(OnAuditActionTypePropertyChanged), "AuditActionType", SD.LLBLGen.Pro.Examples.Auditing.RelationClasses.StaticAuditInfoRelations.AuditActionTypeEntityUsingAuditActionTypeIdStatic, true, signalRelatedEntity, "AuditInfo", resetFKFields, new int[] { (int)AuditInfoFieldIndex.AuditActionTypeId });
     _auditActionType = null;
 }