Hi Frans,
First of all congratulations on the new release!!
While upgrading one of my projects I encountered an issue during validation which was not a problem in V3.
For this (simplified) table:
CREATE TABLE [OrderItemsLink]
(
[OrderId] [int] NOT NULL ,
[ItemId] [bigint] NOT NULL ,
[ParentId] [bigint] NULL ,
CONSTRAINT [PK_db33b5c4e9c844f3c0987f9e1df] PRIMARY KEY CLUSTERED
( [OrderId] ASC, [ItemId] ASC )
)
GO
ALTER TABLE [OrderItemsLink] WITH CHECK ADD CONSTRAINT [FK_cc237dc4f1b8b98277dc5bb91f3] FOREIGN KEY([OrderId], [ParentId])
REFERENCES [OrderItemsLink] ([OrderId], [ItemId])
GO
the designer reports this error:
The relationship 'OrderItemsLink.ParentLink - OrderItemsLink.Contents (m:1)' has a foreign key field 'OrderItemsLink.OrderId (FK)' which points to itself, which isn't supported.
In V3 this was not reported, so perhaps the second part of the key is ignored in V4?
Regards,
André