If I fill a DataTable with DataAdapter.Fill(DataTable);
and then make changes to a row in the DataTable with something simple like this: DataTable.Rows[0]["Name"] = "New Name";
how can I easily save those changes back to the database? I assumed I could call DataAdapter.Update(DataTable);
but I read that only works with a TableAdapter(?).
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
Here is an actual helpful answer in case anyone else needs to know how to do this:
Take note of SqlBulkCopyOptions.KeepIdentity , you may or may not want to use this for your situation.