private void AddInternal(Type entityType, Type validatorType) { if (PersistenceValidatorsMap.ContainsKey(entityType)) { PersistenceValidatorsMap[entityType] = validatorType; } else { PersistenceValidatorsMap.Add(entityType, validatorType); } }
public bool HasContextFor(Type entityType) { return(PersistenceValidatorsMap.ContainsKey(entityType)); }