I hope someone can help me here.
I have a generally question to LinQ-mySQL with VB.NET
I have a table called customer. This table is related to an other table called orders. With LinQ, I am possible to do something like this:
Code: Select all
Dim Kunden = (From Query in DataContext.Customers Where Query.Name='MYNAME').Single
Code: Select all
For each Auftrag In Kunden.Orders
Next
But! - When I want to give the Variable: Kunden to an other form, how do I have to make this right, so I can call the For/Each in the new form, whitout loading the data again? (I know, that the Orders are loaded when they are called - deffered loading) - but will this also work between form and form, or how to do this right?
Hope you understand! - THX