Closed henkmollema closed 9 years ago
Accessing an entity map for a type which has not entity map results in a KeyNotFound exception due to the fact that an indexer is used without a ContainsKey check:
KeyNotFound
ContainsKey
var mapping = FluentMapper.EntityMaps[type] as IDommelEntityMap;
TryGetValue should be used here.
TryGetValue
Fixed with 7ea72fca1ad1a3f5b8dbecbd8572dd9d4449eee1.
Accessing an entity map for a type which has not entity map results in a
KeyNotFound
exception due to the fact that an indexer is used without aContainsKey
check:TryGetValue
should be used here.