Microsoft make our life easier to provide the Entity frame
work and release us to use the traditional way to use the database
connectivity. It provides an O/RM framework called "Entity Framework"
to automate database.
By Entity Framework in Asp.net, developer’s can queries using LINQ,
then retrieve, Insert, Update and manipulate data as strongly typed objects.
Entity Framework can be useful on any type of architecture
opted by you either is code first approach
or data driven approach.
In Code first approach
either you can have all the code views or by this you want to create the data
base.
In Data Driven approach you have database ready and by which
you want to create the classes that will interact with the database.
I am going to demonstrate the Data driven approach. It’s
really good for beginners for starting the entity framework.
11 Steps to create
Entity Framework and work with it.
1.
Suppose you have data base with below given
table.