Esempio n. 1
0
        /// <summary>Private CTor for deserialization</summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected UserTypeEntity(SerializationInfo info, StreamingContext context) : base(info, context)
        {
            _user               = (Reliant.RenuOil.DAL.CollectionClasses.UserCollection)info.GetValue("_user", typeof(Reliant.RenuOil.DAL.CollectionClasses.UserCollection));
            _alwaysFetchUser    = info.GetBoolean("_alwaysFetchUser");
            _alreadyFetchedUser = info.GetBoolean("_alreadyFetchedUser");



            base.FixupDeserialization(FieldInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance());

            // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
            // __LLBLGENPRO_USER_CODE_REGION_END
        }
Esempio n. 2
0
        /// <summary> Initializes the class members</summary>
        private void InitClassMembers()
        {
            _user = new Reliant.RenuOil.DAL.CollectionClasses.UserCollection(new UserEntityFactory());
            _user.SetContainingEntityInfo(this, "UserType");
            _alwaysFetchUser    = false;
            _alreadyFetchedUser = false;



            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END
            OnInitClassMembersComplete();
        }