-1

Is it possible to update the entity data modal with the database through Vb.NET or C# code.

2
  • Your question title & detail conflict - Your asking if you can update the database schema via the EF and then asking is it possible to update the data model with the database. Which is it you need to know? Commented Nov 17, 2011 at 11:20
  • This is very poor and ambiguous question. Commented Nov 17, 2011 at 14:56

2 Answers 2

0

Please consider EF Code First

Please see this walkthrough to get a kick start: http://weblogs.asp.net/scottgu/archive/2011/05/05/ef-code-first-and-data-scaffolding-with-the-asp-net-mvc-3-tools-update.aspx

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

Comments

0

Updating database schema using Code First unfortunately not supported. as per my knowledge. i was in a same situation once, this blog may help you

http://blogs.msdn.com/b/efdesign/archive/2010/10/22/code-first-database-evolution-aka-migrations.aspx

and of course this

Updating database schema with Entity Framework Code First

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.