Exemplo n.º 1
0
        /// <summary> Initializes the class members</summary>
        private void InitClassMembers()
        {
            _responses = new SquawkTalk.Datalayer.CollectionClasses.ResponseCollection();
            _responses.SetContainingEntityInfo(this, "Feed");
            _personReturnsNewIfNotFound = false;
            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END
            OnInitClassMembersComplete();
        }
Exemplo n.º 2
0
 /// <summary>Private CTor for deserialization</summary>
 /// <param name="info"></param>
 /// <param name="context"></param>
 protected FeedEntity(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     _responses               = (SquawkTalk.Datalayer.CollectionClasses.ResponseCollection)info.GetValue("_responses", typeof(SquawkTalk.Datalayer.CollectionClasses.ResponseCollection));
     _alwaysFetchResponses    = info.GetBoolean("_alwaysFetchResponses");
     _alreadyFetchedResponses = info.GetBoolean("_alreadyFetchedResponses");
     _person = (PersonEntity)info.GetValue("_person", typeof(PersonEntity));
     if (_person != null)
     {
         _person.AfterSave += new EventHandler(OnEntityAfterSave);
     }
     _personReturnsNewIfNotFound = info.GetBoolean("_personReturnsNewIfNotFound");
     _alwaysFetchPerson          = info.GetBoolean("_alwaysFetchPerson");
     _alreadyFetchedPerson       = info.GetBoolean("_alreadyFetchedPerson");
     this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance());
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }