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); }
public DbEntityCache(DbEntityCacheKeyMapping cacheKeyMapping) { this.cacheKeyMapping = cacheKeyMapping; }
public DbEntityCache() { this.cacheKeyMapping = DbEntityCacheKeyMapping.emptyMapping(); }