コード例 #1
0
 private void AddInternal(Type entityType, Type validatorType)
 {
     if (PersistenceValidatorsMap.ContainsKey(entityType))
     {
         PersistenceValidatorsMap[entityType] = validatorType;
     }
     else
     {
         PersistenceValidatorsMap.Add(entityType, validatorType);
     }
 }
コード例 #2
0
 public bool HasContextFor(Type entityType)
 {
     return(PersistenceValidatorsMap.ContainsKey(entityType));
 }