Skip to content

Instantly share code, notes, and snippets.

@hbulens
Last active January 13, 2018 04:25
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save hbulens/b3a972394ee6f9d14158964b36f32122 to your computer and use it in GitHub Desktop.
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