In this article, I will explore entity framework with ASP.NET MVC. We will modify Form validation sample that will access data layer using entity framework.
We will create the following table in local database using SQL express.
CREATETABLE [dbo].[tblComment](
[CommentID] [int] IDENTITY(1,1)NOTNULL,
[Name] nvarcharNULL,
[Email] nvarcharNULL,
[Comment] nvarcharNULL)
Now, Right click on the Models directory and select add new item...
(more)