More in this section
Forums / Developing with Sitefinity / Docs in a Library through Fluent

Docs in a Library through Fluent

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Steve
    Steve avatar
    3037 posts
    03 Dec 2008
    06 Dec 2011
    Link to this post
    Why is this not valid?

    var documents = App.WorkWith()
                                       .Where(ci => ci.Library.Title == this.LibraryName)

    Field 'Library' not found on class 'Telerik.Sitefinity.Libraries.Model.Document'.

    Seems fine through intellisense

  2. Tim
    Tim avatar
    258 posts
    22 Jun 2011
    06 Dec 2011
    Link to this post

    From what I've read, this is the recommended way of accomplishing what you're trying to do:

    var documents = App.WorkWith().Documents().Publihed().Where(d => d.Parent.Title.ToString() == this.LibraryName).Get();

    Here's the post where I picked up the explanation.

    Hope that helps!
2 posts, 0 answered