Esempio n. 1
0
 public PropertyInfo GetProperty(string name)
 {
     if (PropertiesByName.TryGetValue(name, out PropertyInfo property) ||
         PropertiesByLogicalName.TryGetValue(name, out property))
     {
         return(property);
     }
     throw new KeyNotFoundException($"The property \"{name}\" was not found in the entity type \"{EntityName}\".");
 }
Esempio n. 2
0
 public bool ContainsProperty(string name)
 {
     return(PropertiesByName.ContainsKey(name) ||
            PropertiesByLogicalName.ContainsKey(name));
 }