示例#1
0
        /// <summary> Initializes the class members</summary>
        private void InitClassMembers()
        {
            _employeeTerritories = new Northwind.DAL.CollectionClasses.EmployeeTerritoryCollection();
            _employeeTerritories.SetContainingEntityInfo(this, "Territory");
            _regionReturnsNewIfNotFound = false;
            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END
            OnInitClassMembersComplete();
        }
示例#2
0
 /// <summary>Private CTor for deserialization</summary>
 /// <param name="info"></param>
 /// <param name="context"></param>
 protected TerritoryEntity(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     _employeeTerritories               = (Northwind.DAL.CollectionClasses.EmployeeTerritoryCollection)info.GetValue("_employeeTerritories", typeof(Northwind.DAL.CollectionClasses.EmployeeTerritoryCollection));
     _alwaysFetchEmployeeTerritories    = info.GetBoolean("_alwaysFetchEmployeeTerritories");
     _alreadyFetchedEmployeeTerritories = info.GetBoolean("_alreadyFetchedEmployeeTerritories");
     _region = (RegionEntity)info.GetValue("_region", typeof(RegionEntity));
     if (_region != null)
     {
         _region.AfterSave += new EventHandler(OnEntityAfterSave);
     }
     _regionReturnsNewIfNotFound = info.GetBoolean("_regionReturnsNewIfNotFound");
     _alwaysFetchRegion          = info.GetBoolean("_alwaysFetchRegion");
     _alreadyFetchedRegion       = info.GetBoolean("_alreadyFetchedRegion");
     this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance());
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }