示例#1
0
 protected BaseRepository(DataLayerInfrastructure <ContactsContext> infrastructure)
 {
     DatabaseContext = infrastructure.GetDbContext();
 }
示例#2
0
 protected BaseRepository(DataLayerInfrastructure <ILiteDatabase> infrastructure)
 {
     DatabaseContext = infrastructure.GetDbContext();
     _liteCollection = DatabaseContext.GetCollection <T>();
 }