After upgrading to version 5.7.436 I'm facing some bugs. I use a customized DbContext template.
1 - Using FluentMapping=True and Mapping Generation Strategy=UseConfigurationClasses, according to the release notes it should generate a partial configuration class. However, it doesn't, but a partial method named "OnCreated" is added. This behaviour prevents the code from compiling.
2 - If I change the Generate Partial Class attribute to True, the configuration's partials classes aren't generated in the folder set on Configuration Output. (Bug 1 still happens)
Can anyone reproduce the same errors?
Thank you
Generation bugs after upgrading to v5.7.436
Re: Generation bugs after upgrading to v5.7.436
For generating a partial configuration class, please set the following options of DbContext template:otaviosoares wrote:Using FluentMapping=True and Mapping Generation Strategy=UseConfigurationClasses, according to the release notes it should generate a partial configuration class.
FluentMapping=True
Mapping Generation Strategy=UseConfigurationClasses
File Per Class=True
Generate Partial Class=True
Thank you for the report. This bug is fixed in the latest builds (5.7.441/8.4.244) of Entity Developer/dotConnect for Oracle.otaviosoares wrote:However, it doesn't, but a partial method named "OnCreated" is added. This behaviour prevents the code from compiling.
Here is a description (in Visual Studio) of the Generate Partial Class property of DbContext template:otaviosoares wrote:If I change the Generate Partial Class attribute to True, the configuration's partials classes aren't generated in the folder set on Configuration Output.
If it is set to True, then, for each class in the model, a partial class (%ModelName%.%ClassName%.cs) will be generated, in which the user can add code that is not overwritten by the designer. If %ModelName%.%ClassName%.cs was created before, it would be left unchanged. The property can be used, if File Per Class is turned on.
-
- Posts: 7
- Joined: Fri 22 Aug 2014 19:07
Re: Generation bugs after upgrading to v5.7.436
Thank you. It's working now.