Johan Eliasson
unread,Nov 9, 2017, 5:14:24 AM11/9/17Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sharpre...@googlegroups.com
Hi!
How can I create an instance of a custom named repository?
I define it like this:
public interface IEntryRepository : IRepository<Entry, int>
{
}
public class EntryRepository : ConfigurationBasedRepository<Entry,
int>, IEntryRepository
{
}
But I can only create it like this:
EntryRepository repo = new EntryRepository();
I would like to do something like this:
EntryRepository repo = new EntryRepository("EntryRepository");
so that it would use the EntryRepository I defined in app.config
How should I do it?