You are currently viewing the BOOK: Beginning Microsoft Visual Studio LightSwitch Development section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .

Does LightSwitch somehow support a many to many relationship? I tried to select Many & Many in the multiplicity columns but the "Add New Relationship" dialog says "Many to many" relationships are not supported.MIght there be a workaround of some sort? I'm simply trying to create a linking table - for example: between computer machines and software titles (less than 50 each), where each title is associated with several machines, and each machine associated with several titles. The end result is to display [1] a list-detail screen where each machine name, selected from a list of machines, displays a detail (list) of software installed: title name, version nr..., and [2] a list-detail screen where each software title, selected from a list of titles, displays a detail list of machines where the title is installed: machine name, fixed IP...My first thought is to create a DB with such a relationship directly within SQL Server, then attach/connect to that existing, external DB -- but then will LightSwitch also barf at accepting that relationship for a LightSwitch created application?Thanks.

However, I think pg.203 of Mr. Novak's very good LS book is not entirely true. After Step 5, as reads: "...the Designers in the LightSwitch IDE provide you with everything you need to create and handle tables and relationships." Having read Chap 7, with a fine!! explanation of the most common relationships, you may be surprised to find that LS 1.0 doesn't support "many-to-many" relationships in the "Add New Relationship" dialog; the dialog simply says "not supported." Hopefully it will be supported in later releases of LS.