-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The EdmModel constructor was failing with System.TypeInitializationException:“The type initializer for 'Microsoft.OData.Edm.Vocabularies.V1.CoreVocabularyModel' threw an exception.” This was caused by the construction of the CoreVocabularyModel looking for embedded resources that are not present in the .NetStandard version of Edm. In addition to adding the embedded resources, the resource name are fully qualified in NetStandard so addition code is added to find the proper name for the resource before loading it. The fix was tested by temporarily adding a unit test to validate the EdmModel constructor as well as the unit test validation for CoreVocabularyModel and AlternateKeysVocabularyModel. These tests are not included in this change as we need to invest in more than just these tests. A future change will introduce a test suite for the NetStandard binary.
- Loading branch information
1 parent
272c74a
commit 752ccb3
Showing
4 changed files
with
27 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters