DbLinqDataSource issue when on Master page

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
DocDweeb
Posts: 4
Joined: Sat 04 Dec 2010 22:48

DbLinqDataSource issue when on Master page

Post by DocDweeb » Sat 01 Jan 2011 00:22

Hi,

I have dotConnect for MySql, and LinqConnect, the latest releases from December 2010.

When I add a DbLinqDataSource to a plain ASPX page it works fine. In Design Mode I can click the smart tag and select 'Configure Data Source'. In the 'Choose your context object' drop-down I can find the .LQML models I built, and proceed from there.

However, when I try the same steps with an ASPX page that uses a Master page, this does not work. I add the DbLinqDataSource into the asp:Content section. In Design Mode I click the smart tag, select 'Configure Data Source'. The 'Choose your context object' drop-down does not contain my models!

Can anybody help?

-Doc

DocDweeb
Posts: 4
Joined: Sat 04 Dec 2010 22:48

Post by DocDweeb » Sat 01 Jan 2011 05:03

Maybe it's not tied to a Master page...
I keep trying different things... sometimes my model appears in the 'Choose your context object' drop-down, and sometimes not.
Can't figure it out!

Maybe I have a corrupted install?
The checkbox that's supposed to say 'Show only data context objects' only says "Show only" with nothing else. The checkbox does seem to do what it's supposed to do, though...

Frustrating...

StanislavK
Devart Team
Posts: 1710
Joined: Thu 03 Dec 2009 10:48

Post by StanislavK » Mon 03 Jan 2011 15:20

Such issue may occur with just created DataContexts; it is necessary to re-compile the application after creating a new DataContext class so that this class will be available in the DbLinqDataSource configuration dialog.

If the problem persists after re-building the application, please send us a test project with which it can be reproduced.

Post Reply