-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce the IEdmPropertyRef interface Use default interface method for IEdmEntityType avoid breaking changes This change focus on Edm lib, if it's ready and will move to OData.Core.
- Loading branch information
Showing
23 changed files
with
676 additions
and
61 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
30 changes: 30 additions & 0 deletions
30
src/Microsoft.OData.Edm/Csdl/Semantics/BadElements/UnresolvedPropertyRef.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
//--------------------------------------------------------------------- | ||
// <copyright file="UnresolvedProperty.cs" company="Microsoft"> | ||
// Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. | ||
// </copyright> | ||
//--------------------------------------------------------------------- | ||
|
||
using Microsoft.OData.Edm.Validation; | ||
|
||
namespace Microsoft.OData.Edm.Csdl.CsdlSemantics | ||
{ | ||
internal class UnresolvedPropertyRef : BadElement, IUnresolvedElement, IEdmPropertyRef | ||
{ | ||
public UnresolvedPropertyRef(IEdmStructuredType declaringType, string name, string alias, EdmLocation location) | ||
: base(new EdmError[] | ||
{ | ||
new EdmError(location, EdmErrorCode.BadUnresolvedPropertyRef, | ||
Edm.Strings.Bad_UnresolvedPropertyRef(declaringType.FullTypeName(), name, alias)) | ||
}) | ||
{ | ||
} | ||
|
||
public IEdmStructuralProperty ReferencedProperty => null; | ||
|
||
public string PropertyAlias { get; } | ||
|
||
public string Name { get; } | ||
|
||
public IEdmPathExpression Path { get; } | ||
} | ||
} |
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
Oops, something went wrong.