Using in ASP.Net LINQDatasource

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
acadalzo
Posts: 17
Joined: Fri 26 Sep 2008 08:00

Using in ASP.Net LINQDatasource

Post by 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

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Fri 14 Nov 2008 10:19

The code created by Microsoft can work only with Microsoft provider.

Post Reply