I have encountered a problem with a data source pointing to some Sharepoint lists: List 1 = Band with Key Band.ID, List 2 = Bandprotocol with key Bandprotocol.ID and foreign Key BandID referring to Band.ID, one Band can have several protocols, the relationship is defined in Sharepoint. When the lists are included in Lightswitch, the relationship is there, too. But the navigation properties for the relationship are only partially defined, so I added them, that is: Navigation property for Band is Bandprotocol , and navigation Property for Bandprotocol is Band in the Relationship properties. These are the only properties which can be edited in the relationship. Works fine, and I can create screens etc. using this. E.g. adding the Bandprotocol to a Band-screen, and by this displaying the protocols belonging to a band. BUT: when I update the datasource the navigation property for Band is lost, and everything in the Band-screen concerning the Bandprotcol data is deleted and has to be recreated I think this has to do with the fact that the relationship from sharepoint is imported as a 0/1 to many relationship, although in fact it is a 1 to many relationship, BandId is set to required in the Sharepoint list. This is not recognized by Lightswitch, and it cannot be changed.
LightSwitch Release Version
Product Language
Steps to reproduce
Operating System
Operating System Language
Actual results
Expected results
Please wait...