예제 #1
0
        protected virtual void Update <TEntity>(TEntity entity) where TEntity : class
        {
            Context.Set <TEntity>().Attach(entity);
            var entry = Context.Entry(entity);

            entry.State = EntityState.Modified;
        }
예제 #2
0
 protected RepositoryBase(IEURISContext context)
 {
     Context   = context;
     EntitySet = context.Set <T>();
 }