Two Unique Always Update

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
ruda
Posts: 17
Joined: Sat 29 Mar 2014 17:10

Two Unique Always Update

Post by ruda » Mon 09 May 2022 14:13

Version: 6.12.1419
EF Core

I detected a problem, to occur was like this:

Code: Select all

CREATE DATABASE TestED
GO

USE TestED
GO

CREATE TABLE [dbo].[TableA]
(
	[TableAId] INT NOT NULL PRIMARY KEY IDENTITY(1, 1),
	[SType] [INT] NOT NULL,
	[Cod] [NVARCHAR] (50) NULL,
	[Name] [NVARCHAR] (200) NOT NULL
)
GO

CREATE UNIQUE NONCLUSTERED INDEX [IX_TableA_SType_Cod] ON [dbo].[TableA] ([SType], [Cod]) WHERE ([Cod] IS NOT NULL)
GO

CREATE UNIQUE NONCLUSTERED INDEX [IX_TableA_SType_Name] ON [dbo].[TableA] ([SType], [Name]) WHERE ([Cod] IS NULL)
GO
This occurs when there are two UNIQUE (one did not).
In this my UNIQUE has a where but it made no difference in the problem.

It doesn't recognize it and is also in the update loop of always thinking it has changed.

Image

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Two Unique Always Update

Post by Shalex » Thu 12 May 2022 13:11

Thank you for your report. We will investigate the problem and notify you about the result.

Post Reply