public TEntity Create(TEntity entity)
        {
            var result = ObjectSet.Add(entity);

            EfUnitOfWork.Commit();
            return(result);
        }
Beispiel #2
0
        public new void Update(ClaimEntity claim)
        {
            EfUnitOfWork.Context.Entry(claim.Status).State = EntityState.Detached;
            ObjectSet.AddOrUpdate(claim);
            EfUnitOfWork.Commit();

            //ObjectSet.AddOrUpdate(claim);
            //EfUnitOfWork.Commit();
        }
 public void Delete(TEntity entity)
 {
     ObjectSet.Remove(entity);
     EfUnitOfWork.Commit();
 }
 public void Update(TEntity entity)
 {
     ObjectSet.AddOrUpdate(entity);
     EfUnitOfWork.Commit();
 }