/// <summary> /// Updates any Cache Objects that are dependent on this entity /// </summary> /// <param name="entityState">State of the entity.</param> /// <param name="dbContext">The database context.</param> public void UpdateCache(EntityState entityState, Rock.Data.DbContext dbContext) { // Update CategoryCache ScheduleExclusions CategoryCache.UpdateCachedEntity(this.CategoryId, entityState); }
/// <summary> /// Updates any Cache Objects that are associated with this entity /// </summary> /// <param name="entityState">State of the entity.</param> /// <param name="dbContext">The database context.</param> public void UpdateCache(System.Data.Entity.EntityState entityState, Rock.Data.DbContext dbContext) { CategoryCache.UpdateCachedEntity(this.Id, entityState); }
/// <summary> /// Updates any Cache Objects that are dependent on this entity /// </summary> /// <param name="entityState">State of the entity.</param> /// <param name="dbContext">The database context.</param> public void UpdateCache(EntityState entityState, Rock.Data.DbContext dbContext) { // Tell the CategoryCache that is has been modified since its ScheduleExclusions modified CategoryCache.UpdateCachedEntity(this.CategoryId, EntityState.Modified); }