示例#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);
        }
示例#2
0
 public DbEntityCache(DbEntityCacheKeyMapping cacheKeyMapping)
 {
     this.cacheKeyMapping = cacheKeyMapping;
 }
示例#3
0
 public DbEntityCache()
 {
     this.cacheKeyMapping = DbEntityCacheKeyMapping.emptyMapping();
 }