示例#1
0
 public DbEntityEntry<Profile> Entry(Profile entity)
 {
     HttpContext.Current.Cache.Remove("Profiles"); // invalidate cache
     return db.Entry<Profile>(entity);
 }
示例#2
0
 public Profile Remove(Profile entity)
 {
     HttpContext.Current.Cache.Remove("Profiles"); // invalidate cache
     Entry(entity).State = System.Data.EntityState.Deleted;
     return entity;
 }
示例#3
0
 public Profile Add(Profile entity)
 {
     HttpContext.Current.Cache.Remove("Profiles"); // invalidate cache
     return db.Profiles.Add(entity);
 }