locked
WCF query returning null RRS feed

  • Question

  • I've been reading this article http://traf-o-data.blogspot.com/2011/08/linking-lightswitch-data-to-logged-in.html and I've created a screen to add data to the table SalesPerson.

    When Lightswitch creates the screen it adds an AutocompleteBox to select the User. When I run the app it works as expected and I can see the list of users in the AutocompleteBox.

    Now I want to query the User table in another screen writing the following statement

    var query =
       from u in this.DataWorkspace.UsersDomainServiceData.Users
       select u;

    and the query returns nothing.

    Why is this happening?

    Thursday, February 21, 2013 8:09 PM

All replies

  • Hi vcRobe,

    If you start debugging and set a breakpoint in the statement, what does your dataset look like?

    -Pierson

    Thursday, February 21, 2013 9:06 PM
    Moderator