Is there any tool where I can draw Entity Framework models and it generates C# POCO classes and MSSQL DDL scripts from that?
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.
Yes, it’s called Visual Studio, but to get the POCO classes rather than the complex EntityObjects you have to replace the code-generation strategy. This ability was added in VS 2010 and can be applied directly in the designer. YOu can get the POCO T4 template from the Visual Studio Extension gallery. It also contains a description on how to use it.
The DDL generation is also built-in to the designer (but can also be modified using T4 and Workflows).
Basically you have to: