Beispiel #1
0
        public static DbEntityCacheKeyMapping defaultEntityCacheKeyMapping()
        {
            DbEntityCacheKeyMapping mapping = new DbEntityCacheKeyMapping();

            // subclasses of JobEntity
            mapping.registerEntityCacheKey(typeof(MessageEntity), typeof(JobEntity));
            mapping.registerEntityCacheKey(typeof(TimerEntity), typeof(JobEntity));

            // subclasses of HistoricDetailEventEntity
            mapping.registerEntityCacheKey(typeof(HistoricFormPropertyEntity), typeof(HistoricDetailEventEntity));
            mapping.registerEntityCacheKey(typeof(HistoricFormPropertyEventEntity), typeof(HistoricDetailEventEntity));
            mapping.registerEntityCacheKey(typeof(HistoricVariableUpdateEventEntity), typeof(HistoricDetailEventEntity));
            mapping.registerEntityCacheKey(typeof(HistoricDetailVariableInstanceUpdateEntity), typeof(HistoricDetailEventEntity));

            return(mapping);
        }
Beispiel #2
0
 public DbEntityCache(DbEntityCacheKeyMapping cacheKeyMapping)
 {
     this.cacheKeyMapping = cacheKeyMapping;
 }
Beispiel #3
0
 public DbEntityCache()
 {
     this.cacheKeyMapping = DbEntityCacheKeyMapping.emptyMapping();
 }