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