Hi this post is regarding EntityFramework where we can can do simple queries like Select, Edit, Update and Delete using EF (EntityFramework). EF is an Object-Relational Mapper.
First create a database, Don't worry i am uploading the database file also just attach the db file and use it.
How to attach DB can be seen HERE
1. Open VS 2010 and create a new web project.
2. Ones the web project was created, the first thing we need to do is ADD a new item from installed templates in vs 2010. Here the new item is ADO.Net Entity Model with an extension *.edmx.
In my project EFDB is my file name. ones it was added EFDBEENTITY is the class name to create
an object, to work with it.
3. while adding a new item it will ask for a connection, provide appropriate things and add the tables you need.
4. Now build the project ones.
5. Design the GUI for adding deleting updating, editing and selecting, now i didnt had a chance to show the
screen shots for u. Download the project from the provided link.
6. After designing the GUI we had 5 buttons and 7 text boxes and a gridview to show the details.
7. CODING
First create a database, Don't worry i am uploading the database file also just attach the db file and use it.
How to attach DB can be seen HERE
1. Open VS 2010 and create a new web project.
2. Ones the web project was created, the first thing we need to do is ADD a new item from installed templates in vs 2010. Here the new item is ADO.Net Entity Model with an extension *.edmx.
In my project EFDB is my file name. ones it was added EFDBEENTITY is the class name to create
an object, to work with it.
3. while adding a new item it will ask for a connection, provide appropriate things and add the tables you need.
4. Now build the project ones.
5. Design the GUI for adding deleting updating, editing and selecting, now i didnt had a chance to show the
screen shots for u. Download the project from the provided link.
6. After designing the GUI we had 5 buttons and 7 text boxes and a gridview to show the details.
7. CODING