Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
If you were to run the web application right now you would see a simple screen that displays a collection of guitar names. However, it’s still not very useful due to the data being hardcoded. Luckily, you have several choices when it comes to using F# to interact with a database for storage and/or retrieval of data.
Entity Framework (EF) is probably the most
common way to interact with an SQL Server database when working in
ASP.NET MVC. Adoption is continuing to grow, especially now that EF
supports a code-first approach. The F#/C# ASP.NET MVC 4 template already
added all of the assembly references you need in order to start working
with EF. With this done, you start using it by creating a class that
inherits from DbContext. The
following code shows an example of this: