I would like to add database in App_Data folder in my application.
This is my connection string in Web.config file
<connectionStrings>
<add name="DefaultConnection"
providerName="System.Data.SqlClient"
connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-TestTask-20151223145656;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\TestTaskDb.mdf" />
</connectionStrings>
And this is my TestTaskDb class
public class TestTaskDb : DbContext
{
public TestTaskDb() : base("name=DefaultConnection")
{
}
public DbSet<Vacancy> Vacancies { get; set; }
}
As I can see there is TestTaskDb.mdf in my App_Data folder
But I'm not sure, if I send my project to other person, and he open it on his computer, build and run application, would it work with my database and its data or not?

.mdffile is a SQL Server database file - to do anything with it, that other person must also have some SQL Server instance (Express or higher - NOT SQL Server Compact / CE!) installed to make use of that database file