Question: I want to be use some sliders in my wordpress theme. I want to select them in my theme option. I am using the code below. 

```
<?php 
    $slider_select = get_option_tree( 'slider_select', '', 'true' ); 
?>

<?php get_template_part('$slider_select'); ?>

```

But, it is not working. I want the get\_template\_part code worked. Any suggestion?

Answer: 
LINQ to SQL has a LoadOptions that you can set on the context to do some powerful things. Most people point to the .LoadWith which eagerly loads child records. There's also an AssociateWith which specifies the filtering to apply on lazy child fetches. Both of them can take a lambda expression for sub child filtering. Here's an example:

```
var lo = new DataLoadOptions();
lo.AssociateWith<Customers>
    (c => c.Orders.Where(o => !o.ShippedDate.HasValue));
this.LoadOptions=lo;

var query = from c in Customers
            select c.Orders;

```

Note, this only works with LINQ to SQL. EF does not support this behavior at this time.
```
using (var context = new DbEntities()) {
    foreach (var p in context.Parents) {
        var childQuery = from c in p.Children 
                         where c.whatever == something 
                         select c;
        // Do something with the items in childQuery, like add them to a List<Child>,
        // or maybe a Dictionary<Parent,List<Child>>
    }
}

```