Loadoptions

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
Zero-G.
Posts: 398
Joined: Sat 09 Dec 2006 12:20

Loadoptions

Post by Zero-G. » Tue 07 Jul 2009 15:08

Hey

I use your latest product of dotConnect for mySQL
I try to use LoadOptions, so that all needed data will be loaded when I need it.
But it doesn't work for me....
I have an association in the Entity Developer (And it also works by LinQ Querys) between the table "Kundenstamm" and "Auftrag"

Now I would use LoadOptions with the following code:

Code: Select all

        Dim Options As New Devart.Data.Linq.DataLoadOptions
        Options.LoadWith(Of Kundenstamm)(Function(Ku) Ku.Auftrag)
But "Ku.Auftrag" is no Member of "KU" - But there are NO Members at all.

What am I doing wrong?
THX

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Wed 08 Jul 2009 12:39

Thank you for the report, we have reproduced the problem.
As a temporary workaround, type the correct name of the EntitySet (it should be Ku.Auftrags, I suppose), it should work.

Zero-G.
Posts: 398
Joined: Sat 09 Dec 2006 12:20

Post by Zero-G. » Wed 08 Jul 2009 12:45

Hey

Yes, it seems to work as a workaround.

Will this problem also be fixed in the new version, which should come on friday?

THX

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Fri 10 Jul 2009 06:55

No, this problem is not fixed yet. We are investigating it.

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Thu 16 Jul 2009 14:48

Unfortunately, there is no technical possibilty to change this behaviour.
Microsoft LINQ to SQL has the same problem.

Post Reply