0

As you can see, the schema.Elements returns three elements one of whom is an EntityContainer element. But when I try to search thru the Elements overload specifying the "EntityContainer" (schema.<EntityContainer>) it doesn't retrieve anything.

alt text

Jeff Mercado
  • 129,526
  • 32
  • 251
  • 272
Shimmy Weitzhandler
  • 101,809
  • 122
  • 424
  • 632

1 Answers1

0

Answer found.

It didn't return anything since the EntityContainer element in the edmx file belongs to an imported namespace I forgot to import in my file.

Adding this line solved everything:

Imports <xmlns="http://schemas.microsoft.com/ado/2009/02/edm/ssdl">
Shimmy Weitzhandler
  • 101,809
  • 122
  • 424
  • 632