コード例 #1
0
 public virtual void recycle()
 {
     // clean out state
     dbEntity    = null;
     copy        = null;
     entityState = null;
 }
コード例 #2
0
 public virtual ProcessEngineException AlreadyMarkedEntityInEntityCacheException(string id, Type entityClass,
                                                                                 DbEntityState state)
 {
     return
         (new ProcessEngineException(ExceptionMessage("003",
                                                      "Inserting an entity with Id '{0}' and type '{1}' which is already marked with state '{2}'", id,
                                                      entityClass, state)));
 }
コード例 #3
0
 public virtual ProcessEngineException EntityCacheDuplicateEntryException(string currentState, string id,
                                                                          Type entityClass, DbEntityState foundState)
 {
     return
         (new ProcessEngineException(ExceptionMessage("002",
                                                      "Cannot add {0} entity with id '{1}' and type '{2}' into cache. An entity with the same id and type is already in state '{3}'",
                                                      currentState, id, entityClass, foundState)));
 }