Exemple #1
0
 public void Update(TEntity entity)
 {
     _context.Set <TEntity>().Add(entity);
     _context.Entry(entity).State = EntityState.Modified;
 }
Exemple #2
0
 public Repository(LanguagesCourseModelContext languagesCourseModelContext)
 {
     _context = languagesCourseModelContext;
     _dbSet   = languagesCourseModelContext.Set <TEntity>();
 }