What does .mdf file contain in an asp.net project?

(For Visual Studio 2012, ASP.NET 4) The .MDF file in an ASP.NET project is quite simply a SQL Server 2012 database file which supports the MVC application. The Model classes define the structure of the database using the Code First methodology. By default, in Visual Studio 2012 when you create an MVC application it will use the LocalDB engine to access the database, in earlier versions of Visual Studio the SQL Server Express engine was used. Once generated you can view the structure of the database within visual studio, or attach the .mdf file to a SQL Server instance and view it with SQL Server Management Studio.
See the official asp.net site for some fantastic tutorials and videos.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s