Hi,
I have 2 tables here: Auction and Article.
1 Auction has 1 Article. 1 Aricle has x Auctions.
Now I load a list of auctions:
using (APlattformDatabaseDataContext dc = new APlattformDatabaseDataContext())
{
List<Auktion> auctionlist = (from a in dc.Auktion
where a.KäuferID == null
select a).ToList();
return auctionlist;
}
But when I want to "txtBla.Text = auction[0].Article.Text;" it isn't loaded. The question isn't why (it is logic that it isn't loaded allready and can't be loaded because the DC is closed), but how can I solve this without letting the DC open?