-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: V4.0_ERRATA02
-
Fix Version/s: V4.01_WD01
-
Component/s: CSDL XML
-
Labels:
-
Environment:
Annotations
-
Proposal:
Some model elements can only be annotated via inline annotations but not targeted via the edm:Annotations element. As annotation documents and service metadata may have different owners or life-cycles this restricts authors of annotation documents.
In the edm:Path expression definition we had specified how a path expression is evaluated, if the annotation targets a entity container, entity set, entity type, complex type, navigation property of a structured type, or a property of a structured type.
We should check for all other CSDL elements how the path expression could be extended to allow external targeting, e.g. if we target an edm:FunctionImport we can use the parameter names as path segments (which would be consistent with the syntax of the EntitySetPath attribute), and have a special path segment to address the ReturnType, e.g. $ReturnType or $out, treating it as an implicitly named "return parameter".
With the extension of the edm:Path we will automatically extend the definitions of the CSDL elements based on edm:Path like edm:PropertyPath.