Hi,
I want to update and insert some records based on a csv I read. The insert is not a problem, but how to update a bunch of data in a single statement? I have not clear how to join them.
Update Item
Set
Name = t.Name
From
Item i, TextFile t
Where
i.ItemNo = t.ItemNo
For the Name = t.Name I created an private Item UpdateItem(Item originalItem, Item newItem)
in which the logic for updating is present.
I want to know to to call this functions and perform an db.SubmitChanges() with the changed records.
Any help appreciated.