-
Notifications
You must be signed in to change notification settings - Fork 60
Compilation Error after Upgrading to v1.3.0.11 #129
Comments
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
to
and see if that changes things. Thanks for the report. |
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 Please let me know in case you need any further info on this from myself! |
Hmm. Then that makes less sense. Since |
Yes as I can even reproduce the problem with just a single entity in this project: |
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: