From ed1f40b01697ae9fe29abdc0d7a6133784b17ddb Mon Sep 17 00:00:00 2001 From: ElizabethOkerio Date: Mon, 30 May 2022 09:54:50 +0300 Subject: [PATCH] update error message --- src/Microsoft.OData.Edm/Schema/EdmEntityType.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Microsoft.OData.Edm/Schema/EdmEntityType.cs b/src/Microsoft.OData.Edm/Schema/EdmEntityType.cs index be9b891858..e55302c6d5 100644 --- a/src/Microsoft.OData.Edm/Schema/EdmEntityType.cs +++ b/src/Microsoft.OData.Edm/Schema/EdmEntityType.cs @@ -176,8 +176,7 @@ public void AddKeys(IEnumerable keyProperties) } else { - string message = "The structural property only be of type entity or complex"; - throw new InvalidOperationException(message); + throw new InvalidOperationException(Strings.Bad_UnresolvedType(structuralProperty)); } }