예제 #1
0
 /// <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(EntityState entityState, Data.DbContext dbContext)
 {
     WorkflowActionFormCache.UpdateCachedEntity(this.WorkflowActionFormId, EntityState.Modified);
     WorkflowActionFormAttributeCache.UpdateCachedEntity(this.Id, entityState);
 }
예제 #2
0
 /// <summary>
 /// Gets the cache object associated with this Entity
 /// </summary>
 /// <returns></returns>
 public IEntityCache GetCacheObject()
 {
     return(WorkflowActionFormAttributeCache.Get(this.Id));
 }