Updating multiple records asp

There may be instances where one wants to update a field value for a large, select group of records.

Doing this one record at a time is a killer on productivity.

The table is within a form and each record(row) has a checkbox next to it.

I need to create an update statement that will update each record that has its checkbox checked.

However when multiple model objects are submitted this assumption is no longer true.

So, in this article we'll create the MVC application in Visual Studio 2013.

When a new course entity is created, it must have a relationship to an existing department.

For most relationships, this can be done by updating either foreign key fields or navigation properties.

For many-to-many relationships, the Entity Framework doesn't expose the join table directly, so you add and remove entities to and from the appropriate navigation properties.

Using Fiddler, I can see the post back to the server when I click update, and it is passing back (in the post) the updates to the multiple objectives listed - I just can't figure out how to loop through the returned object, to save each one to the database (I'm not sure what a collection is, or if it's required, given the data is being posted back)??

This example, and the explanation that go with it, do something that sadly few tutorials haven't done - emphasize the fact that you have to use a for loop (not a foreach) and give an explicit index to each element in the html-list that is generated in order for it to get picked up properly by the controller.