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