Wednesday 12 August 2015

DATA FROM DATABASE TO VIEW

LESSON - 4

Let us populate the Data from database to View Using EntityFrame - Edmx



Next in the view we can populate the data.


Finally we have beautiful form with data.


Thank you,

Monday 10 August 2015

ADD EDMX FILE TO THE NEW PROJECT

ADD EDMX FILE TO THE PROJECT

Let's see how to add Edmx file to the project, Right click on the model  > Select New Item >  ADO.NET Entity Data Model. Name it as EmployeeModel. then add



Database first approach
Choose EF Designer from Database.  Next






Finally Select the tables to add into to Edmx file.



Tuesday 4 August 2015

CREATE VIEW IN MVC

ASP.NET MVC C# USING ENTITY FRAMEWORK 
LESSON - 2

How to Create a View.

In previous lesson we have seen how to create new project and new controller, now we will see how to create view in this post.


Once added new view, then we find New folder called Home, under the home folder we have only view called Index.


Sunday 2 August 2015

Asp.Net MVC Using EntityFramework

ASP NET MVC ENTITY FRAMEWORK

LESSON - 1


Let start create new project using Visual Studio 2013. See the below image.


Then Ok

Then project will contain the following folders



To Add new controller, We need to right click controller folder and add new controller and name it as Home controller.



We have blank HomeController Class