Instantly share code, notes, and snippets.
hbulens/2014-12-14-repository-pattern-sharepoint_002.cs
Last active Jan 13, 2018
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