Esempio n. 1
0
        /// <summary> Initializes the class members</summary>
        private void InitClassMembers()
        {
            _emailTemplates = new SquawkTalk.Datalayer.CollectionClasses.EmailTemplateCollection();
            _emailTemplates.SetContainingEntityInfo(this, "Person");

            _feeds = new SquawkTalk.Datalayer.CollectionClasses.FeedCollection();
            _feeds.SetContainingEntityInfo(this, "Person");
            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END
            OnInitClassMembersComplete();
        }
Esempio n. 2
0
        /// <summary>Private CTor for deserialization</summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected PersonEntity(SerializationInfo info, StreamingContext context) : base(info, context)
        {
            _emailTemplates               = (SquawkTalk.Datalayer.CollectionClasses.EmailTemplateCollection)info.GetValue("_emailTemplates", typeof(SquawkTalk.Datalayer.CollectionClasses.EmailTemplateCollection));
            _alwaysFetchEmailTemplates    = info.GetBoolean("_alwaysFetchEmailTemplates");
            _alreadyFetchedEmailTemplates = info.GetBoolean("_alreadyFetchedEmailTemplates");

            _feeds               = (SquawkTalk.Datalayer.CollectionClasses.FeedCollection)info.GetValue("_feeds", typeof(SquawkTalk.Datalayer.CollectionClasses.FeedCollection));
            _alwaysFetchFeeds    = info.GetBoolean("_alwaysFetchFeeds");
            _alreadyFetchedFeeds = info.GetBoolean("_alreadyFetchedFeeds");
            this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance());
            // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
            // __LLBLGENPRO_USER_CODE_REGION_END
        }