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.ListNamequeryMappers.ConvertToCountry).ToList();
}
#endregion
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.