Closed cveld closed 1 year ago
You need VS 17.5 as should be noted in the latest readme
Great! Now I get some other errors:
<File Unknown>(167,34) : error 0005: The 'PrimitiveTypeKind' attribute is invalid - The value 'HierarchyId' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2006/04/edm/providermanifest:TPrimitiveTypeKind' - The Enumeration constraint failed.
<File Unknown>(167,10) : error 0122: The value 'HierarchyId' is not a valid PrimitiveTypeKind. ConsoleApp1 C:\work\git\ConsoleApp1\Model.edmx 7
Are these runtime or just designer errors? If runtime refer to the readme (again)
It is design time only. The designer is rendering, but we cannot execute a fresh import from database. In the latter, the errors are blocking.
It is out of my hands... When the official provider appears, feel free to report an issue at https://github.com/dotnet/ef6tools
I see you reported the issue upstream at: https://github.com/dotnet/ef6tools/issues/42 You tried to fix it with https://github.com/dotnet/ef6tools/pull/43
Although I have some experience with xsd's I don't understand how I can patch my local stack to circumvent the error.
Who is the consumer? Who is depending on C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Xml\Schemas\System.Data.Resources.ProviderServices.ProviderManifest.xsd
.
Just adding the line <xs:enumeration value="HierarchyId" />
to it did not fix anything.
I am using version 4.1.1 of Microsoft.Data.SqlClient
. Is the error caused by this package?
You are using 5.1 / 5.1.1 if you use my package, but I think that it is unrelated
@cveld Have you checked that EntityFramework is not in GAC?
Yes I saw the documented known issue and checked. But I couldn't find it in the GAC.
The Edmx designer is not working in Visual Studio 2022 (version 17.4.2). We get the exception:
Severity Code Description Project File Line Suppression State Error Error 175: The ADO.NET provider with invariant name 'Microsoft.Data.SqlClient' is either not registered in the machine or application config file, or could not be loaded. See the inner exception for details. ConsoleApp C:\work\git\ConsoleApp\Data\Model1.edmx 7
Any clue how to diagnose this further? Where is the inner exception logged? Is there a way to trigger the same exception through e.g. a tt file which also potentially runs in the same runtime context as the edmx designer?
At runtime the application runs perfectly.
I believe we have fully followed your guidance at https://github.com/ErikEJ/EntityFramework6PowerTools/blob/community/src/ErikEJ.EntityFramework.SqlServer/readme.md
We tried in a web.config world as well as a app.config world.
Ad 2.
Ad 3.
Tested with .NET Framework 4.8.
Packages.config: