Fluent() Getting to Library from Documents
This
var docs = App.WorkWith()
.Documents()
.Publihed()
.Where(x => x.Library.Title ==
this
.LibraryName)
.Get()
var docs = App.WorkWith()
.Documents()
.Publihed()
.Get()
.ToList()
.Where(x => x.Library.Title ==
this
.LibraryName);
Hello Steve,
The reason for the problems might be that the persisted field is Parent, while Library is a property that is internally retrieved as (<T>)this.Parent; and when you're operating with an IQueryable the Library property is not available unless you have made a ToList() call beforehand. What I'd recommend you as the correct approach is to use Parent:
var docs = App.WorkWith()
.Documents()
.Publihed()
.Where(x => x.Parent.Title ==
this
.LibraryName)
.Get()