I'm creating a new web application with Entity Framework. I want to use the following layered structure:
User Interface Layer
Business Object Layer
Interface
Entity Framework Layer
The Business Object Layer now implements the interface on bottom layer using the Entity Framework Objects.
In the user interface I use a Telerik component (radGrid) to show/edit/update/delete data. Now I can show entity data to user simply doing a simple (linq to entities) query like:
var stabilimenti = from s in entities.Stabilimenti
select s;
My problem is to persist data on database when user changes them.
In my user page i want to catch the "RadGrid1_UpdateCommand" and in some way persist data modification. Debugging i've seen that at the update event i've lost all data modification (the program executes a Page_Load just before).
How can I persist modification? Have I to use an Entity DataSource and manually place there datas retrieved from Entity Framework entities? Or what else should I do?