ASP.NET 4 General DiscussionFor ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 4 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
Update multiple rows at once with different values
I have a table named EmpTab. I have few records in it.
I want to update some of those records at once that is when Save buttons is clicked then the few records must be updated. The whole table (all records are splitted in many web forms) it means page 1 contains 1-6 records to update, page 2 contains 7-10 records to update.
So how multiple records can be updated with different values by a single page on button's click event.
Table structure is like this
Id SettingName Value
SettingName contains the setting name, and value contains the actual value.
EF does not apply changes as done. when you use ef_instance.SubmitChanges() then updated records will be updated in Database. this is because of when you change a property value of some model instance, INotifyPropertyChanging and INotifyPropertyChanged interface implemented class (EF) marks the model to be updated when SubmitChanges is called.
so you can updated multiple rows at once. I thought that you want to do it only by StoredProcedure
happy every time, happy every where