Linqdatasource updating

15 Apr

If you use an existing table, the steps in some of the procedures will not match your database exactly.

However, the concepts illustrated in the walkthrough will be the same.

control enables you to perform all these operations without writing Select, Update, Insert, or Delete statements.

You will use the Object Relational Designer to create a class that represents the database table that contains the values.

linqdatasource updating-57linqdatasource updating-89linqdatasource updating-81

LINQ to SQL is a built-in O/RM (object relational mapper) that ships in the . NET (like the Object Data Source and SQLData Source controls that shipped with ASP. NET UI controls to LINQ to SQL data models super easy.If I do it like that, it does work, but this introduces another nasty shortcoming in ASP: my Grid View Event Args contain no data for keys or values if the Grid View doesn't have a Data Source ID set (no clue why). To String(); Yes, that is the approach I am currently attempting.I can get around it by using the rowindex, though, but even then updating will be a pain. I think I have had the paging problem your talking about. That is odd your not able to retrieve data for the keys. The paging breaks because previously the datasource took care of that for me.The missing link here seems to be getting the Data Source or the Grid View (or both) to refresh.Debugging this has been a pain and I can't really tell (or I don't know how to tell) whether the problem is updating the objects of my Data Source/Grid View, or whether it's sending a call back to the user after those objects have been updated.