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