コード例 #1
0
        /// <summary>Creates a new, empty TeamEntity object.</summary>
        /// <returns>A new, empty TeamEntity object.</returns>
        public override IEntity2 Create()
        {
            IEntity2 toReturn = new TeamEntity();

            // __LLBLGENPRO_USER_CODE_REGION_START CreateNewTeam
            // __LLBLGENPRO_USER_CODE_REGION_END
            return toReturn;
        }
コード例 #2
0
        /// <summary>Creates a new TeamEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object.</summary>
        /// <param name="fields">Populated IEntityFields2 object for the new IEntity2 to create</param>
        /// <returns>Fully created and populated (due to the IEntityFields2 object) IEntity2 object</returns>
        public override IEntity2 Create(IEntityFields2 fields)
        {
            IEntity2 toReturn = new TeamEntity(fields);

            // __LLBLGENPRO_USER_CODE_REGION_START CreateNewTeamUsingFields
            // __LLBLGENPRO_USER_CODE_REGION_END
            return toReturn;
        }
コード例 #3
0
 /// <summary> Removes the sync logic for member _team</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 DesetupSyncTeam(bool signalRelatedEntity, bool resetFKFields)
 {
     base.PerformDesetupSyncRelatedEntity( _team, new PropertyChangedEventHandler( OnTeamPropertyChanged ), "Team", TeamPostEntity.Relations.TeamEntityUsingFkTeamId, true, signalRelatedEntity, "TeamPost", resetFKFields, new int[] { (int)TeamPostFieldIndex.FkTeamId } );
     _team = null;
 }
コード例 #4
0
 /// <summary> setups the sync logic for member _team</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncTeam(IEntity2 relatedEntity)
 {
     if(_team!=relatedEntity)
     {
         DesetupSyncTeam(true, true);
         _team = (TeamEntity)relatedEntity;
         base.PerformSetupSyncRelatedEntity( _team, new PropertyChangedEventHandler( OnTeamPropertyChanged ), "Team", TeamPostEntity.Relations.TeamEntityUsingFkTeamId, true, new string[] {  } );
     }
 }
コード例 #5
0
        /// <summary> Initializes the class members</summary>
        protected virtual void InitClassMembers()
        {
            _post = null;
            _team = null;

            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END
            OnInitClassMembersComplete();
        }
コード例 #6
0
        protected TeamPostEntity(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
            if(SerializationHelper.Optimization != SerializationOptimization.Fast)
            {

                _post = (PostEntity)info.GetValue("_post", typeof(PostEntity));
                if(_post!=null)
                {
                    _post.AfterSave+=new EventHandler(OnEntityAfterSave);
                }
                _team = (TeamEntity)info.GetValue("_team", typeof(TeamEntity));
                if(_team!=null)
                {
                    _team.AfterSave+=new EventHandler(OnEntityAfterSave);
                }

                base.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
            }

            // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
            // __LLBLGENPRO_USER_CODE_REGION_END
        }
コード例 #7
0
 /// <summary> setups the sync logic for member _team_</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncTeam_(IEntity2 relatedEntity)
 {
     if(_team_!=relatedEntity)
     {
         DesetupSyncTeam_(true, true);
         _team_ = (TeamEntity)relatedEntity;
         base.PerformSetupSyncRelatedEntity( _team_, new PropertyChangedEventHandler( OnTeam_PropertyChanged ), "Team_", WeeklyProgrammeMatchEntity.Relations.TeamEntityUsingFkTeam2, true, new string[] {  } );
     }
 }
コード例 #8
0
 /// <summary> Removes the sync logic for member _team_</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 DesetupSyncTeam_(bool signalRelatedEntity, bool resetFKFields)
 {
     base.PerformDesetupSyncRelatedEntity( _team_, new PropertyChangedEventHandler( OnTeam_PropertyChanged ), "Team_", WeeklyProgrammeMatchEntity.Relations.TeamEntityUsingFkTeam2, true, signalRelatedEntity, "WeeklyProgrammeMatch_", resetFKFields, new int[] { (int)WeeklyProgrammeMatchFieldIndex.FkTeam2 } );
     _team_ = null;
 }
コード例 #9
0
        protected WeeklyProgrammeMatchEntity(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
            if(SerializationHelper.Optimization != SerializationOptimization.Fast)
            {

                _team_ = (TeamEntity)info.GetValue("_team_", typeof(TeamEntity));
                if(_team_!=null)
                {
                    _team_.AfterSave+=new EventHandler(OnEntityAfterSave);
                }
                _team = (TeamEntity)info.GetValue("_team", typeof(TeamEntity));
                if(_team!=null)
                {
                    _team.AfterSave+=new EventHandler(OnEntityAfterSave);
                }
                _weeklyProgrammeDay = (WeeklyProgrammeDayEntity)info.GetValue("_weeklyProgrammeDay", typeof(WeeklyProgrammeDayEntity));
                if(_weeklyProgrammeDay!=null)
                {
                    _weeklyProgrammeDay.AfterSave+=new EventHandler(OnEntityAfterSave);
                }

                base.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
            }

            // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
            // __LLBLGENPRO_USER_CODE_REGION_END
        }