I am having an issue with linq updating in linqtosql
from the code below
Dim lqPatientTable As New lqHospitalDataContext
Dim strPatientId As String
strPatientId = Me.ucboPatientInfo.SelectedRow.Cells(5).Value
Dim lqPatientName = (From lqp In lqPatientTable.Patients _
Where lqp.PatientID = strPatientId _
Select lqp.FirstName, lqp.LastName)
For Each row In lqPatientName
row.LastName = utxtPatientLastName.Text
row.FirstName = utxtPatientFirstName.Text
Next
lqPatientTable.SubmitChanges()
Visual Studio tells me that row.LastName is readonly I have not made that asignment anywhere, and I cannot see where the issue is.