I have a Entity Framework EDMX file and I want to traverse the EntityType elements as well as the child Property elements but I can't figure out how to do it. It always returns an empty set of descendants.
Any help appreciated
I have a Entity Framework EDMX file and I want to traverse the EntityType elements as well as the child Property elements but I can't figure out how to do it. It always returns an empty set of descendants.
Any help appreciated
Without knowing exactly how the edmx file looks like I would guess that you need to include the XNamespace in the Descendants question, something like:
XNamespace xmlns = "http://blablabla.lala.com"
var results = from x in XElement.Load("location of edmx file")
.Descendants(xmlns.GetName("EntityType"))
like I said...something like this...