Beispiel #1
0
 /// <summary>
 /// Injecting db contexts
 /// </summary>
 /// <param name="hopeLineDb"></param>
 public Repository(HopeLineDbContext hopeLineDb)
 {
     _hopeLineDb = hopeLineDb;
     _entities   = _hopeLineDb.Set <T>();
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="hopeLineDb"></param>
 public UserRepository(HopeLineDbContext hopeLineDb)
 {
     _hopeLineDb = hopeLineDb;
     _entities   = _hopeLineDb.Set <HopeLineUser>();
 }