public bool Exists(string alpha2_Code, CultureInfo language)
	{
		using (_db)
		{
			_db.Open();
			bool model = _db.CurrentExists("Translations", alpha2_Code, language.NeutralName());
			return model;
		}
	}
	public Translation Get(string alpha2_Code, CultureInfo language)
	{
		using (_db)
		{
			_db.Open();
			Translation model = _db.Translation(alpha2_Code, language.NeutralName());
			return model;
		}
	}
	public bool AreTranslated(CultureInfo language)
	{
		using (_db)
		{
			_db.Open();
			bool model = _db.CurrentExist(language.NeutralName());
			return model;
		}
	}
	public IEnumerable<Country> FindAll(CultureInfo language)
	{
		using (_db)
		{
			_db.Open();
			IEnumerable<Country> model = _db.AllCountries(language.NeutralName());
			return model;
		}
	}
	private IEnumerable<Country> findCurrent(CultureInfo language)
	{
		using (_db)
		{
			_db.Open();
			IEnumerable<Country> model = _db.CurrentCountries(language.NeutralName());
			return model;
		}
	}
		public Country Get(string alpha2_Code, CultureInfo language)
		{
			using (_db)
			{
				_db.Open();

				Country model = _db.Country(alpha2_Code, language.NeutralName());
				return model;
			}
		}
Example #7
0
	public CacheHash(CultureInfo ci)
	{
		_value = "Countries." + ci.NeutralName();
	}