Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public class CountryRepository : SSOMRepositoryBase<Country>, ICountryRepository
{
#region Constructor
public CountryRepository(string contextUrl) : base(contextUrl)
{
}
#endregion
#region Properties
private string ListName
{
get
{
return Resources.Lists_Countries;
}
}
#endregion
#region Methods
public List<Country> GetCountries(sp.SPQuery query)
{
return this.GetItems<Country>(this.ListName, query, Mappers.ConvertToCountry).ToList();
}
#endregion
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment