Exemplo n.º 1
0
 protected BaseRepository(DataLayerInfrastructure <ContactsContext> infrastructure)
 {
     DatabaseContext = infrastructure.GetDbContext();
 }
Exemplo n.º 2
0
 protected BaseRepository(DataLayerInfrastructure <ILiteDatabase> infrastructure)
 {
     DatabaseContext = infrastructure.GetDbContext();
     _liteCollection = DatabaseContext.GetCollection <T>();
 }