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