Example #1
0
        public virtual TEntity Update(TEntity obj)
        {
            // var entry = Context.Entry(obj);
            //DbSet.Attach(obj);
            // entry.State = EntityState;
            //return obj;
            SisConvContext.Set <TEntity>().AddOrUpdate(obj);

            return(obj);
        }
Example #2
0
 public RepositoryBase(SisConvContext sisConvContext)
 {
     SisConvContext = sisConvContext;
     DbSet          = SisConvContext.Set <TEntity>();
 }