If you use SQL 2014 you need to change connection string in Web.config
name="EfDbContext" connectionString="Data Source=(localdb)\mssqllocaldb; Initial Catalog=EfDbContext; Integrated Security=True" providerName="System.Data.SqlClient"
The project consists of two parts
- Domain (C# class library)
- Web.ImageApplicatiop (MVC Application)
Domain lib сontains definition of DataBase Context , Repository definition is working with entities and in this project is enabled DBMigration (Migrations Folder). If you wanna init/update Database, you need to change folder path to your app directory in Domain/Migrations/Configuration.cs var getFiles = Directory.GetFiles(root + "\\ImageApplication\\DeployRepository\\ImageApplication\\Web.ImageApplication\\Content\\images");
and use command :