/// <summary> /// Set C_Country_ID /// </summary> /// <param name="C_Country_ID"></param> public new void SetC_Country_ID(int C_Country_ID) { if (GetC_Country_ID() != C_Country_ID) { SetRegion(null); } SetCountry(MCountry.Get(GetCtx(), C_Country_ID)); }
/// <summary> /// Get Country /// </summary> public MCountry GetCountry() { if (_country == null) { if (GetC_Country_ID() != 0) { _country = MCountry.Get(GetCtx(), GetC_Country_ID()); } else { _country = MCountry.GetDefault(GetCtx()); } } return(_country); }