namespace DMS.GenericRepository
{
public class GenericRepository<TEntity> where TEntity : class
{
internal DbSet<TEntity> dbSet;
public virtual void Update(TEntity entityToUpdate)
{
dbSet.Attach(entityToUpdate);
context.Entry(entityToUpdate).State = System.Data.Entity.EntityState.Modified;
}
}