/// <summary> /// Loads a <see cref="G11_City_Child"/> object from the database, based on given criteria. /// </summary> /// <param name="city_ID1">The City ID1.</param> protected void Child_Fetch(int city_ID1) { var args = new DataPortalHookArgs(city_ID1); OnFetchPre(args); using (var dalManager = DalFactorySelfLoadROSoftDelete.GetManager()) { var dal = dalManager.GetProvider <IG11_City_ChildDal>(); var data = dal.Fetch(city_ID1); Fetch(data); } OnFetchPost(args); }
/// <summary> /// Loads a <see cref="G11_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 = DalFactorySelfLoadROSoftDelete.GetManager()) { var dal = dalManager.GetProvider <IG11_CityRoadCollDal>(); var data = dal.Fetch(parent_City_ID); LoadCollection(data); } OnFetchPost(args); }
/// <summary> /// Loads a <see cref="G09_Region_ReChild"/> object from the database, based on given criteria. /// </summary> /// <param name="region_ID2">The Region ID2.</param> protected void Child_Fetch(int region_ID2) { var args = new DataPortalHookArgs(region_ID2); OnFetchPre(args); using (var dalManager = DalFactorySelfLoadROSoftDelete.GetManager()) { var dal = dalManager.GetProvider<IG09_Region_ReChildDal>(); var data = dal.Fetch(region_ID2); Fetch(data); } OnFetchPost(args); // check all object rules and property rules BusinessRules.CheckRules(); }
/// <summary> /// Loads a <see cref="G02_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 = DalFactorySelfLoadROSoftDelete.GetManager()) { var dal = dalManager.GetProvider <IG02_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="H09_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 = DalFactorySelfLoadROSoftDelete.GetManager()) { var dal = dalManager.GetProvider <IH09_CityCollDal>(); var data = dal.Fetch(parent_Region_ID); LoadCollection(data); } OnFetchPost(args); foreach (var item in this) { item.FetchChildren(); } }
/// <summary> /// Loads a <see cref="H01_ContinentColl"/> collection from the database. /// </summary> protected void DataPortal_Fetch() { var args = new DataPortalHookArgs(); OnFetchPre(args); using (var dalManager = DalFactorySelfLoadROSoftDelete.GetManager()) { var dal = dalManager.GetProvider <IH01_ContinentCollDal>(); var data = dal.Fetch(); Fetch(data); } OnFetchPost(args); foreach (var item in this) { item.FetchChildren(); } }