Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
How can I generate Entity classes directly from the database in Visual Studio 2010 (C#)?
Thanks!
Use Entity Framework, LinqToSql or install a 3rd party solution like nHibernate.
There is no 'direct' way to do it without an ORM.
Add a comment
Open up an Entity Data Model using the Add Item dialog. That'll give you a wizard for importing from a DB
Use the handy wizard that is offered when you add an Entity Model to your project.
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.