0

I want to get a list of all actual column names in my EF entity. I explicitly don't want the navigation properties, though. I already found this question, which is pretty straight forward, but ignores the second requirement.

My first approach was, to filter the property types with a Linq where clause. I could check for IEnumerable or Lazy<T>. But I guess, that Lazy<T> doesn't implement IEnumerable and I haven't found a way to do a generic Lazy check. Is this even the best approach, or are there any better?

André Reichelt
  • 1,484
  • 18
  • 52

0 Answers0