I have two tables in SQL server one Messages
and a second Message Bodies
. There is a FK relationship between the two (Primary key on Messages
to a column (Message ID
) on Message Bodies
.
Message Bodies
has a unique index specified on Message ID
to ensure no duplicates.
The goal of all that database work is to ensure a one-or-zero to one mapping.
+-------------------------+ +------------------------------+
| Messages | | Message Bodies |
|-------------------------| |------------------------------|
| PK |+----+ | PK |
| Message Header | +----+| Message ID |
| | | Message Body |
+-------------------------+ +------------------------------+
When I add this as a data source into Lightswitch it adds a One to Many relationship between these.
How do I change this as the multiplicty settings are disabled?