Click here to Skip to main content
15,895,084 members
Articles / Programming Languages / C#

ADO .net entity framework Autogenerate model from code behind

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
23 Nov 2012CPOL 10.4K   1  
I have added ADO .net Entity Framework to my project and so I see the EDMX file. When I added it, there was this pop-up (Entity Designer???) asking me to choose a datasource, and I had read that if pointed to an existing DB, the necessary Object classes/entities will be auto generated in my...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
23 Nov 2012Prathap Gangireddy
If you want to use the existing database tables in your project then forget about AutoGenerating Entities without using the designer wizard which pops up when .EDMX file is added to the project.So if you choose an empty .EDMX file, then right click on the designer and click on Update model...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Other
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions