Skip to content
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

SqlHierarchyId work in efcore 2 but not working in efcore3 #20415

Closed
110vahid opened this issue Mar 26, 2020 · 3 comments
Closed

SqlHierarchyId work in efcore 2 but not working in efcore3 #20415

110vahid opened this issue Mar 26, 2020 · 3 comments

Comments

@110vahid
Copy link

when using SqlHierarchyId in models and call insert method exeption occured.
innerexception : No mapping exists from object type Microsoft.SqlServer.Types.SqlHierarchyId to a known managed provider native type.

@ajcvickers
Copy link
Contributor

@110vahid SqlHierarchyId minimally "worked" in EF Core 2.x on .NET Framework. It is not supported on .NET Core. Also, given that EF Core 5 will no longer run on .NET Framework, we are not currently prioritizing making SqlHierarchyId work in EF Core.

@110vahid
Copy link
Author

Is there a replacement for SqlHierarchy in .net core 3?

@ajcvickers
Copy link
Contributor

@110vahid Official support in .NET Core requires that the types be implemented, which is tracked by SqlClient issue #322, referenced above.
If this gets done, then #365 is tracking support in EF Core.

Issue #365 also contains discussion of and links to some community efforts to bring an equivalent type to .NET Core.

Closing this as a duplicate of #365, which we will use for potential future support of SqlHierarchyId in EF Core.

@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants