I'm trying to return entities where the bool "isAssy" is true:
public ObservableCollection<MasterPartsList> ParentAssemblyBOM
{
get {return this._parentAssemblyBOM.Where(parent => parent.isAssy == true); }
}
but the entire statement is underlined in red stating that I cannot "convert type IEnumerable to ObservableCollection...are you missing a cast?"
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…