-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect behavior of classes with the same name #23981
Labels
area-model-building
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
type-bug
Milestone
Comments
@smitpatel @AndriySvyryd I am able to reproduce this. The exception only happens when both entity types are included in the model. |
If you have repro handy, can you print model also? That would help in narrowing down if model building is running into issue or query. Wrong type is getting picked up it seems which shouldn't happen in type based lookup. |
|
smitpatel
added a commit
that referenced
this issue
Aug 26, 2021
smitpatel
added
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
and removed
area-query
labels
Aug 26, 2021
smitpatel
added a commit
that referenced
this issue
Aug 26, 2021
smitpatel
added a commit
that referenced
this issue
Aug 27, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area-model-building
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
type-bug
I have two classes (keyless entities) with same names but different namespaces. Classes have the same properties with different signatures.
DbContext:
Run Program
At the last statement I get exception:
ns1.TestQuery.MyValue
is nullable, but exception says that Null is not allowed. As I suppose, there is some kind of cache that works by the name of the class without namespace.EF Core version: 5.0.2
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: .NET 5.0
Operating system: Windows 10 Version 10.0.19042 Build 19042
IDE: Visual Studio 2019 16.8.3
The text was updated successfully, but these errors were encountered: