Using in ASP.Net LINQDatasource

Using in ASP.Net LINQDatasource

Postby acadalzo » Thu 13 Nov 2008 18:40

I'm using Visual Studio 2008 to create an ASP.Net app. I created a datacontext and I reference it in a LinqDataSource control. Then I bind a gridview control to the LinqDataSource control. When I run the app, my data is presented in the gridview. The gridview has an 'Edit' button which I click and then I change some text in the gridview. Then I click the 'Update' button provided in the gridview and get this error:

>> The data context used by LinqDataSource 'LinqDataSource1' must extend DataContext when the Delete, Insert or Update operations are enabled. <<

Does that mean I can't use the DataContext for inserts/updates via the ASP.Net LinqDataSource control? Or is there something else I need to do?

Thanks,
Al
acadalzo
 
Posts: 17
Joined: Fri 26 Sep 2008 08:00

Postby Shalex » Fri 14 Nov 2008 10:19

The code created by Microsoft can work only with Microsoft provider.
Shalex
Devart Team
 
Posts: 7833
Joined: Thu 14 Aug 2008 12:44


Return to LinqConnect (LINQ to SQL support)