Is it possible with Linq to update a dataset?

B

BlackSun

Hi,
I have this working code which update a column:

For Each rigaFF As DataRow In Me.dtSizeA.Rows
For Each rigaTemp As DataRow In
Me.dtSizeB.Select(String.Concat("Name = ", CStr(rigaFF(0))))
rigaTemp(18) = rigaFF(3)
Next
Next

Is it possible to do the same with Linq?

Thanks in advance for your help!!!

Cheers, BlackSuna
 
C

Cor Ligthert[MVP]

AFAIK No.

if you want to use Linq for SQL Server (not other ones) have a look to Linq
to SQL or Linq to EF

It is easy with Linq to SQL, just add a Linq to SQL item and go than to
server explorer to select the tables like in AdoNet.

DataContext SubmitChanges does than the update.

(You can do normal Linq in a DataSet, but a dataset does not mean direct
AdoNet)
 
M

Michel Posseth [MCP]

Yes you can update a dataset with Linq , just set a value to the entity

HTH

Michel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top