コード例 #1
0
 /// <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);
 }
コード例 #2
0
ファイル: Category.cs プロジェクト: ewin66/rockrms
 /// <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);
 }
コード例 #3
0
 /// <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);
 }