I\'m trying to return entities where the bool \"isAssy\" is true:
public ObservableCollection ParentAssemblyBOM
{
get {return
You have to explicitly create the ObservableCollection which at it's most simplest is:
public ObservableCollection ParentAssemblyBOM
{
get {return new ObservableCollection(this._parentAssemblyBOM.Where(parent => parent.isAssy == true)); }
}
This is potentially inefficient as you are creating new collection every time. However, this might be the simplest solution if you are returning a radically different set of data each time. Otherwise you have to loop through the collection removing items that are no longer in the return set and adding new items.