/// <summary> Removes the sync logic for member _file</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 DesetupSyncFile(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity( _file, new PropertyChangedEventHandler( OnFilePropertyChanged ), "File", TVJunkie.DatabaseAccessLayer.RelationClasses.StaticFileVideoStreamRelations.FileEntityUsingFileIdStatic, true, signalRelatedEntity, "FileVideoStreams", resetFKFields, new int[] { (int)FileVideoStreamFieldIndex.FileId } );
     _file = null;
 }
 /// <summary> setups the sync logic for member _file</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncFile(IEntityCore relatedEntity)
 {
     if(_file!=relatedEntity)
     {
         DesetupSyncFile(true, true);
         _file = (FileEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity( _file, new PropertyChangedEventHandler( OnFilePropertyChanged ), "File", TVJunkie.DatabaseAccessLayer.RelationClasses.StaticFileVideoStreamRelations.FileEntityUsingFileIdStatic, true, new string[] {  } );
     }
 }
 protected FileVideoStreamEntity(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     if(SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _file = (FileEntity)info.GetValue("_file", typeof(FileEntity));
         if(_file!=null)
         {
             _file.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }