visual studio lightswitch - Navigation properties in HTML client with sql server data source -


Visual Studio LiteSwitch 2013, using a SQL Server Data Source, we have a unit A: Regarding other institutions B, 1: B, C, ...; Therefore, there are some navigation properties of Type B, C, ... in unit A ...

With the HTML client, after issuing a query for Unit A, Properties B, C, ... All are undefined In the following cases this happens:

  • A data item was added to the screen with related organizations ('Manage edited data' feature 'Edit Query '); Load object on data object object to load visual collection data from programmatically (e.g., screen. Customer.load (false). Then (...))

  • Data used with the service program 'extension' method (example: myapp.activeDataWorkspace.SqlData.Customers.expand ("address"). Execute (). Then (...)

    Checking the foreign key fields in the 'hidden' property '_' of each unit example, by inspecting returned data. .

    Note: Inspecting the requested URL with the applicant shows that the query is correct; inspecting the SQL shows the server issued queries (though SQL Server Profiler) That query contains related data. Issuing the Odata query shows that all data is returned. It seems that when the client is side, the data is DSR, Navigation entities are not processed.

    Can anyone help?

    Thanks.

    P>

    Further testing indicates that only foreign keys for the integer columns are properly controlled in the form of navigation properties. Example:

    • 'wrong' case: Table A, Field B with the primary key = New field field table B. F1 type nvarchar as a foreign key

      A navigation property has been defined but it is not made in the client side

    • 'Correct 'Case Table C, Field D with primary key = int field table D.

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -