示例#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}\".");
 }
示例#2
0
 public bool ContainsProperty(string name)
 {
     return(PropertiesByName.ContainsKey(name) ||
            PropertiesByLogicalName.ContainsKey(name));
 }