"Max Length" property value is no longer saved into diagram file after update to 1.3.0.6
mmarinchenko opened this issue ยท 11 comments
I've just updated EF Designer from version 1.3.0.4 to 1.3.0.6. After that I've opened my test diagram and re-saved it. Max Length constraint disappeared.
Then I tried to set Max Length constraint in Properties window and saved diagram one more time. No luck.
So I opened diagram file in text editor. No Max Length value inside.
I use VS 2017 (15.9.16).
Thanks for the catch. Been working on a feature change for string length, where you can explicitly state that the string should be maximum available length, to remove the annoyances of getting a warning for 0-length string. That code got merged before it was ready.
It's yanked out now and the fix is in 1.3.0.7.
Many thanks for quick response, Michael!
v1.3.0.7 is now in the Releases section here on GitHub. Please let me know if you still experience any problems with this.
Ok, thank you! I'll try new version next week.
I've just installed v1.3.0.7 (over v1.3.0.4) and tested it with my diagram.
The only thing I found not very convenient is change in default AutoProperty value. To keep the previous behavior I had to go through all the properties and manually change the value to "True".
Everything else seems to be working fine. Thank you!
Hmm. Thanks. You should not have had to do that - it should be the default. I'll make sure to check that out and fix if it got flipped for some reason.
I appreciate you're testing it out.
As far as I understand the original diagram files (saved in v1.3.0.4) didn't have explicit autoProperty attributes in properties configuration.
So while reading XML (in v1.3.0.7) the absence of attributes were treated as they have "False" values. Therefore in the UI the values were set to "False" but bolded because at the UI level the default is "True".
P.S. At the entity level "AutoProperty Default" values were correctly set to "True". I didn't have to change them manually.
Thanks for the info on the AutoProperty
attribute acting up. That's resolved now. Unfortunately, any model that might have been edited with 1.3.0.6 or 1.3.0.7 may have the overrides embedded in its data now. An annoyance, to be sure.
Thank you for your prompt support, Michael.
Fix available for review in v1.3.0.8-pre