Connect with Peer Bloggers

Get your Bloggers ID and network with best bloggers around the world.

20

How to use EntityFramework CodeFirst to update your database

Czetsuya
czetsuya's tech ― This tutorial will attempt to explain how to update an already existing database using EntityFramework's CodeFirst approach.We need:1.) VS2010 SP12.) NuGet3.) EntityFramework 4.14.) EntityFramework.Migrations Steps:1.) We need to make sure that we have Package Manager Console installed in VS2010 (Open the view). 2.) In Package Manager Console execute: a.) Install-Package EntityFramework b.) Install-Package EntityFramework.MigrationsDelete all tables.Update-Database –TargetMigration:"0[...]
How to use EntityFramework CodeFirst to update your database

Voted by 1 User



What would you say?

Be the first to comment on this blog post! Sign in or Create an account.