/// <summary>Private CTor for deserialization</summary> /// <param name="info"></param> /// <param name="context"></param> protected RoleEntity(SerializationInfo info, StreamingContext context) : base(info, context) { _memberships = (ProductSearchEngine.CollectionClasses.MembershipCollection)info.GetValue("_memberships", typeof(ProductSearchEngine.CollectionClasses.MembershipCollection)); _alwaysFetchMemberships = info.GetBoolean("_alwaysFetchMemberships"); _alreadyFetchedMemberships = info.GetBoolean("_alreadyFetchedMemberships"); this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance()); // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
/// <summary> Initializes the class members</summary> private void InitClassMembers() { _memberships = new ProductSearchEngine.CollectionClasses.MembershipCollection(); _memberships.SetContainingEntityInfo(this, "Role"); PerformDependencyInjection(); // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers // __LLBLGENPRO_USER_CODE_REGION_END OnInitClassMembersComplete(); }
/// <summary> Initializes the class members</summary> private void InitClassMembers() { _memberships = new ProductSearchEngine.CollectionClasses.MembershipCollection(); _memberships.SetContainingEntityInfo(this, "StoreInformation"); _cityReturnsNewIfNotFound = false; PerformDependencyInjection(); // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers // __LLBLGENPRO_USER_CODE_REGION_END OnInitClassMembersComplete(); }
/// <summary>Private CTor for deserialization</summary> /// <param name="info"></param> /// <param name="context"></param> protected StoreInformationEntity(SerializationInfo info, StreamingContext context) : base(info, context) { _memberships = (ProductSearchEngine.CollectionClasses.MembershipCollection)info.GetValue("_memberships", typeof(ProductSearchEngine.CollectionClasses.MembershipCollection)); _alwaysFetchMemberships = info.GetBoolean("_alwaysFetchMemberships"); _alreadyFetchedMemberships = info.GetBoolean("_alreadyFetchedMemberships"); _city = (CityEntity)info.GetValue("_city", typeof(CityEntity)); if (_city != null) { _city.AfterSave += new EventHandler(OnEntityAfterSave); } _cityReturnsNewIfNotFound = info.GetBoolean("_cityReturnsNewIfNotFound"); _alwaysFetchCity = info.GetBoolean("_alwaysFetchCity"); _alreadyFetchedCity = info.GetBoolean("_alreadyFetchedCity"); this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance()); // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
/// <summary>Private CTor for deserialization</summary> /// <param name="info"></param> /// <param name="context"></param> protected StoreInformationEntity(SerializationInfo info, StreamingContext context) : base(info, context) { _memberships = (ProductSearchEngine.CollectionClasses.MembershipCollection)info.GetValue("_memberships", typeof(ProductSearchEngine.CollectionClasses.MembershipCollection)); _alwaysFetchMemberships = info.GetBoolean("_alwaysFetchMemberships"); _alreadyFetchedMemberships = info.GetBoolean("_alreadyFetchedMemberships"); _city = (CityEntity)info.GetValue("_city", typeof(CityEntity)); if(_city!=null) { _city.AfterSave+=new EventHandler(OnEntityAfterSave); } _cityReturnsNewIfNotFound = info.GetBoolean("_cityReturnsNewIfNotFound"); _alwaysFetchCity = info.GetBoolean("_alwaysFetchCity"); _alreadyFetchedCity = info.GetBoolean("_alreadyFetchedCity"); this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance()); // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }