Force the load collection linq
Posted on 2009-05-01
I've 2 tables
Categories and Models
One categories has many Models
One models has only one categories(so we've a foreign key in models)
So I use LINQ to Entity, but I've a problem.
If I've a category object and I do:
I've "0", and in the database, I've correct things.
And if I debug when I do this, a property named "isLoaded" that have the value "false".
So I think the collection isn't loaded.
Must we do anything special? How do we load this collection?