1

How can I generate Entity classes directly from the database in Visual Studio 2010 (C#)?

Thanks!

3 Answers 3

1

Use Entity Framework, LinqToSql or install a 3rd party solution like nHibernate.

There is no 'direct' way to do it without an ORM.

Sign up to request clarification or add additional context in comments.

Comments

1

Open up an Entity Data Model using the Add Item dialog. That'll give you a wizard for importing from a DB

Comments

0

Use the handy wizard that is offered when you add an Entity Model to your project.

Comments

Your Answer

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.

Ask question

Explore related questions

See similar questions with these tags.