I’m generating my POCO’s from edmx model, and would like to know if its possible to make use of the neat codegen features of Entity Framework to create my an xml document along with the POCO (which is needed for my project).
Share
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.
You can generate an XML document in Visual Studio using T4 templates.
But you should note that the EDMX file itself is an XML document.
There are three main sections to the file
StorageModels– describes that databaseConceptualModels– describes your code and objectsMappings– describes how the two models relateLook at whether the standard EDMX file contains the type of information you want. If not, parse and shred it using T4 to extract the information you’re looking for.