-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes for Csdl.GetNamespaceAlias extension method. (#1586)
* Fixes for Csdl.GetNamespaceAlias extension method. - GetNamespace's documentation advertises returning null if the namespace doesn't have an alias. However, it throws KeyNotFoundException instead, as it's calling VersioningDictionary.Get. - GetNamespace crashes with NullReferenceException if the CSDL doesn't define any namespace alias. A null check for GetAnnotationValue's return value is missing. * Adjusted for older .NET versions. * Unit tests * Positive test case for GetNamespaceAlias
- Loading branch information
Showing
2 changed files
with
28 additions
and
1 deletion.
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