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.

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Answer found.
It didn’t return anything since the
EntityContainerelement in the edmx file belongs to an imported namespace I forgot to import in my file.Adding this line solved everything: