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