protected virtual void Update <TEntity>(TEntity entity) where TEntity : class { Context.Set <TEntity>().Attach(entity); var entry = Context.Entry(entity); entry.State = EntityState.Modified; }
protected RepositoryBase(IEURISContext context) { Context = context; EntitySet = context.Set <T>(); }