Having defined an ADO.NET Entity Data Model, I can then instantiate it in a Repository class to query against the database.
using (ApplicationEntities ctx = new ApplicationEntities())
{
// query, CRUD, etc
}
However, that particular line of code becomes boilerplate in most of the methods in the repository class.
Is it possible to just use Spring.NET to inject the Entity Data Model, either in the class or, even better, in an abstract parent class that all the repositories inherit from?