I can check for a single type by using
if (e.PropertyType == typeof(EntityCollection<Search_SearchCodes>))
But but I really want to avoid all objects that are EntityCollections
if (e.PropertyType == typeof(EntityCollection))
Is there a way to do this?