I need to use EntityFramework with Asp.Net.
I’ve read the Tutorials given by Microsoft in here
In that tutorial I learned to use the EF with EntityDataSource. But I want to do DB those operations without using EntityDataSource instead I want to use c# code and I would like to follow some structure like,
- Asp.Net WebSite(Front-end View and Process)
- DataAccesslayer(Connection)
- BusinessLogicLayer(DB Process)
I wish to create and use The models on my own, I don’t want to just refer the datasource to the Gridview and it displays, I want to write codebehind operation with c#. . .
Somebody tell me where could I find examples for that or if anybody knows that means please answer me with little explanation(since I’m a beginner)
You can directly assign entity framework objects as data source. Look at this article in msdn
— edit —
Here is the more appropriate reference for you: http://www.codeproject.com/Articles/43367/ADO-NET-Entity-Framework-as-Data-Access-Layer