0

I am pretty new to using LINQ and have been trying it out querying my strongly typed DataTable. I have managed to perform a 'Select' ok but was wondering if someone can point me in the right direction to do Insert and Updates. I'm not sure if LINQ is best doing an insert at all?

My Select code is as follows:

Dim results = From myRow In _dt.AsEnumerable() _
                      Where myRow.Language_key = Lang And _
                      myRow.Section_key = SectionKey And _
                      myRow.Message_number = MsgNum _
                      Select myRow.Message_line_1
Matt Wilko
  • 26,994
  • 10
  • 93
  • 143

1 Answers1

2

Linq

  1. L : Langauge
  2. IN: Integerated
  3. Q : Query

it is for querying collections like DataTable not for doing Insert or Update

if you want to do that you can use LinqToSql or use Entity framework

Amir Ismail
  • 3,865
  • 3
  • 20
  • 33