protected BaseRepository(DataLayerInfrastructure <ContactsContext> infrastructure) { DatabaseContext = infrastructure.GetDbContext(); }
protected BaseRepository(DataLayerInfrastructure <ILiteDatabase> infrastructure) { DatabaseContext = infrastructure.GetDbContext(); _liteCollection = DatabaseContext.GetCollection <T>(); }