Beispiel #1
0
 public UnitOfWork()
 {
     _context = new ContactInfoAppContext();
     Contacts = new ContactRepository(_context);
 }
Beispiel #2
0
 public ContactRepository(ContactInfoAppContext context) : base(context)
 {
 }
Beispiel #3
0
 public Repository(ContactInfoAppContext context)
 {
     Context = context;
     dbSet   = context.Set <TEntity>();
 }