Losing property name after updating model

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

Losing property name after updating model

Post by ruda » Mon 09 May 2022 14:42

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)
)
GO

CREATE TABLE [dbo].[TableB]
(
[TableBId] [int] NOT NULL PRIMARY KEY IDENTITY(1, 1),
[TableAId] [int] NOT NULL,
[TableAId_Other] [int] NULL
)
GO

ALTER TABLE [dbo].[TableB] ADD CONSTRAINT [FK_TableB_TableA] FOREIGN KEY ([TableAId]) REFERENCES [dbo].[TableA] ([TableAId])
GO
ALTER TABLE [dbo].[TableB] ADD CONSTRAINT [FK_TableB_TableA_Other] FOREIGN KEY ([TableAId_Other]) REFERENCES [dbo].[TableA] ([TableAId])
GO

CREATE TABLE [dbo].[TableC]
(
[TableCId] [int] NOT NULL PRIMARY KEY IDENTITY(1, 1),
)
GO
I add to the model TabelA and TableT.
I rename the two navigation properties to TableA and TableAOther

Image Image Image

If I immediately add the TableC, the problem does not occur.

But if I close the model and open it again, and add the TableC or have any changes in the database and want to update, I lose the changes I made to the name.

This is a huge bug.
I have over 500 tables and with the navigation properties renamed and if I update anything in the layout I totally get close to the work I've done.

This happened the first time. I saved it, closed it and remembered that I needed to add a field.
Soon after I adjusted and lost everything I had done.

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

Re: Losing property name after updating model

Post by Shalex » Thu 12 May 2022 16:24

ruda wrote: Mon 09 May 2022 14:42 If I immediately add the TableC, the problem does not occur.

But if I close the model and open it again, and add the TableC or have any changes in the database and want to update, I lose the changes I made to the name.
Thank you for your report. We have reproduced the issue and will notify you when it is fixed.

fabien.menager
Posts: 4
Joined: Mon 25 Jun 2018 14:39

Re: Losing property name after updating model

Post by fabien.menager » Tue 27 Sep 2022 14:33

Do you have an ETA for this fix ?

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

Re: Losing property name after updating model

Post by Shalex » Fri 07 Oct 2022 10:05

The investigation is in progress. We cannot provide a timeframe at the moment.

Post Reply