public virtual void recycle() { // clean out state dbEntity = null; copy = null; entityState = null; }
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))); }
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))); }