You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
I've upgraded from v1.3.0.4 to v1.3.0.11 and now get a compilation error due to following automated generated code change.
Previous line: modelBuilder.Entity<global::QuickArchive.Data.Db.Keyword>().HasIndex(t => t.Name)
New line: modelBuilder.Entity<global::QuickArchive.Data.Db.Keyword>().HasIndex("_Name")
When I change this back manually compilation works fine again.
And that's the property definition the code is generated from:
What's the reason for this code change that leads to a compilation error?
The text was updated successfully, but these errors were encountered:
It's a bug in the EFCore generation that's not present in the EF6 version, but since this isn't an AutoProperty it shouldn't be doing that. There's something else going on here outside of this property. If you would, please take a look at EFCoreDesigner.ttinclude around line 304. Change
First thanks a lot for your really fast reply on a Sunday! :-)
I'm targeting .NET 4,7.2 at the moment, so I would say it's EF6 (sorry, should have mentioned that from the beginning) - therefore I don't think this it can be related to the EFCore generation?
Still tried to do the change you suggest, but without effect which I expected, because I guess it's rather EF6Designer.ttinclude what is used and not EFCoreDesigner.ttinclude.
Please let me know in case you need any further info on this from myself!
Hmm. Then that makes less sense. Since AutoProperty is set to false, _Name shouldn't even exist. Would you be able to post a minimal repro model that shows this problem?
msawczyn
added
released
Issue is resolved in a current release
and removed
pending release
Issue is resolved in the current codebase, will be published with the next release
labels
Dec 20, 2019
I've upgraded from v1.3.0.4 to v1.3.0.11 and now get a compilation error due to following automated generated code change.
Previous line:
modelBuilder.Entity<global::QuickArchive.Data.Db.Keyword>().HasIndex(t => t.Name)
New line:
modelBuilder.Entity<global::QuickArchive.Data.Db.Keyword>().HasIndex("_Name")
When I change this back manually compilation works fine again.
And that's the property definition the code is generated from:
What's the reason for this code change that leads to a compilation error?
The text was updated successfully, but these errors were encountered: