none
Use of Lamdaexpressions in DataLoadOptions RRS feed

  • Question

  • I need to load set of childs with my parent records.
    My Problem is, I wanted to use LamdaExpressions for DataLoadOptions.

    I couldn't find any documents or example on the net.
    Does anyone know, how to use LamdaExpressions in LoadWith()?
    Any Sample?


    Thanks & Regards
    Hasmukh
    Thursday, November 6, 2008 5:07 AM

All replies

  • EF does not support DataLoadOptions. To eagerly load child entities use Include operator for eg.

     

    var custs = db.Customers.Include("orders");

     

     

    Zeeshan hirani

     

    Thursday, November 6, 2008 5:36 AM
  • I am using LINQ to SQL

    Hasmukh
    Thursday, November 6, 2008 12:47 PM