/// <summary> /// Loads a <see cref="C05_SubContinent_Child"/> object from the database, based on given criteria. /// </summary> /// <param name="parentSubContinent_ID1">The Parent Sub Continent ID1.</param> protected void Child_Fetch(int parentSubContinent_ID1) { var args = new DataPortalHookArgs(parentSubContinent_ID1); OnFetchPre(args); using (var dalManager = DalFactorySelfLoadRO.GetManager()) { var dal = dalManager.GetProvider<IC05_SubContinent_ChildDal>(); var data = dal.Fetch(parentSubContinent_ID1); Fetch(data); } OnFetchPost(args); }
/// <summary> /// Loads a <see cref="C07_Country_Child"/> object from the database, based on given criteria. /// </summary> /// <param name="country_ID1">The Country ID1.</param> protected void Child_Fetch(int country_ID1) { var args = new DataPortalHookArgs(country_ID1); OnFetchPre(args); using (var dalManager = DalFactorySelfLoadRO.GetManager()) { var dal = dalManager.GetProvider <IC07_Country_ChildDal>(); var data = dal.Fetch(country_ID1); Fetch(data); } OnFetchPost(args); }
/// <summary> /// Loads a <see cref="C11_CityRoadColl"/> collection from the database, based on given criteria. /// </summary> /// <param name="parent_City_ID">The Parent City ID.</param> protected void Child_Fetch(int parent_City_ID) { var args = new DataPortalHookArgs(parent_City_ID); OnFetchPre(args); using (var dalManager = DalFactorySelfLoadRO.GetManager()) { var dal = dalManager.GetProvider <IC11_CityRoadCollDal>(); var data = dal.Fetch(parent_City_ID); LoadCollection(data); } OnFetchPost(args); }
/// <summary> /// Loads a <see cref="D05_SubContinent_ReChild"/> object from the database, based on given criteria. /// </summary> /// <param name="subContinent_ID2">The Sub Continent ID2.</param> protected void Child_Fetch(int subContinent_ID2) { var args = new DataPortalHookArgs(subContinent_ID2); OnFetchPre(args); using (var dalManager = DalFactorySelfLoadRO.GetManager()) { var dal = dalManager.GetProvider <ID05_SubContinent_ReChildDal>(); var data = dal.Fetch(subContinent_ID2); Fetch(data); } OnFetchPost(args); // check all object rules and property rules BusinessRules.CheckRules(); }
/// <summary> /// Loads a <see cref="C02_Continent"/> object from the database, based on given criteria. /// </summary> /// <param name="continent_ID">The Continent ID.</param> protected void DataPortal_Fetch(int continent_ID) { var args = new DataPortalHookArgs(continent_ID); OnFetchPre(args); using (var dalManager = DalFactorySelfLoadRO.GetManager()) { var dal = dalManager.GetProvider <IC02_ContinentDal>(); var data = dal.Fetch(continent_ID); Fetch(data); } OnFetchPost(args); FetchChildren(); // check all object rules and property rules BusinessRules.CheckRules(); }
/// <summary> /// Loads a <see cref="D09_CityColl"/> collection from the database, based on given criteria. /// </summary> /// <param name="parent_Region_ID">The Parent Region ID.</param> protected void Child_Fetch(int parent_Region_ID) { var args = new DataPortalHookArgs(parent_Region_ID); OnFetchPre(args); using (var dalManager = DalFactorySelfLoadRO.GetManager()) { var dal = dalManager.GetProvider <ID09_CityCollDal>(); var data = dal.Fetch(parent_Region_ID); Fetch(data); } OnFetchPost(args); foreach (var item in this) { item.FetchChildren(); } }
/// <summary> /// Loads a <see cref="C05_CountryColl"/> collection from the database, based on given criteria. /// </summary> /// <param name="parent_SubContinent_ID">The Parent Sub Continent ID.</param> protected void Child_Fetch(int parent_SubContinent_ID) { var args = new DataPortalHookArgs(parent_SubContinent_ID); OnFetchPre(args); using (var dalManager = DalFactorySelfLoadRO.GetManager()) { var dal = dalManager.GetProvider <IC05_CountryCollDal>(); var data = dal.Fetch(parent_SubContinent_ID); LoadCollection(data); } OnFetchPost(args); foreach (var item in this) { item.FetchChildren(); } }
/// <summary> /// Loads a <see cref="D01_ContinentColl"/> collection from the database. /// </summary> protected void DataPortal_Fetch() { var args = new DataPortalHookArgs(); OnFetchPre(args); using (var dalManager = DalFactorySelfLoadRO.GetManager()) { var dal = dalManager.GetProvider <ID01_ContinentCollDal>(); var data = dal.Fetch(); Fetch(data); } OnFetchPost(args); foreach (var item in this) { item.FetchChildren(); } }