LINQ in Action roller

Unable to update primaryKey column when submitting changes through DataContext

Hi, We are using LINQtoSQL class in VS 2008 to connect to the database and to perform Insert, Update and Delete operations in GridView. We are using the following code in LINQ Application. Public Class DbAccess Public Function FillWorkflows() As Table(Of Workflow) dc = New DataContext(New SqlConnection(sConnectionString)) Return dc.GetTable(Of Workflow)() End Function Public Sub UpdateTask() Try dc.SubmitChanges() Catch ex As Exception Throw ex End Try End Sub End class We are referring this application's Read More...
Published Monday, July 07, 2008 5:17 AM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication