Page 1 of 1

Default Value stopped working since Update

Posted: Mon 06 Dec 2021 13:33
by lukas143
Hi,

we are using Oracle12c and we are using entity developer v. 6.12.1354. Since our last version update of devart the generation process removes "Default Values" which is visible in the following screenshots:

First Screenshot: Showing the data default is detected in entity developer and visible in the model.
Image

Second Screenshot: Showing git changes in VS2019 that the data default is removed. (Leading to exceptions within some of our tests, if group is not set)
Image

I guess it's a bug because it worked before. We had to update the devart version and entity developer because the Windows-Update issue.

Thanks for help

Re: Default Value stopped working since Update

Posted: Tue 07 Dec 2021 17:19
by Shalex
1. Make sure that Default Value is set in Property Editor (CSDL), not only Storage Column Editor (SSDL).

2. Specify the name of your template (e.g., DbContext) used in your Devart Entity Model and non-default values of the template properties.

Re: Default Value stopped working since Update

Posted: Fri 10 Dec 2021 10:19
by lukas143
Hi Shalex, thank you for your reply.

1.

Data_Default in Oracle
Image

Table in Entity Developer, Class Editor. The default value 5 was missing here and not detected. I added it manually.
Image

Git Changes. You are right now there is DefaultValue Change in csdl file.
Image

But sadly still removing the DefaultValue from the Entity ...
Image

Sudden exception we never had in the past
Image

2.

Not 100% sure if i understand you correctly. Here's a screenshot of the used template in Entity Developer:
Image

As i stated before, we never had problems in the past with default values. They were added automatically to the generated "*Entity" files. They were detected even without manually setting them for csdl file. This suddenly stopped working after we updated our devart drivers and entity developer.

Re: Default Value stopped working since Update

Posted: Sat 11 Dec 2021 15:27
by Shalex
Thank you for the additional information. We have reproduced the issue and will notify you about the results of our investigation.

Re: Default Value stopped working since Update

Posted: Thu 17 Mar 2022 11:02
by lukas143
Hi, a few months have passed. Anything new regarding this issue?

Re: Default Value stopped working since Update

Posted: Tue 03 May 2022 16:32
by Shalex
Sorry for the delayed response. We are working on the issue. A timeframe for the fix is one month.