Entity Framework association object problem RRS feed

  • Вопрос

  • Hi everybody!
    I'm having Person object associated with Address object with one-to-one relation. I've got foreign key in database and EntityFramework properly recognize it.
    But when I'm doing such LINQ query:
    var a = from p in context.Persons
                                where p.Address != null
                                select p;
    It gives me also persons with null Adress property.  Database has persons with address and whithout it too.
    Am I missing something?
    Thanks in advance.
    • Перемещено Tagore Bandlamudi 3 октября 2010 г. 0:44 MSDN Forums consolidation (От:Форум по .NET Framework)
    15 марта 2010 г. 22:07