and Function Element edm:Action The edm:Action element represents an action in an entity Actions MAY have observable side effects and MAY return a single instance or a collection of instances of any type. Actions cannot be composed with additional path segments. The action MAY specify a return type using the element. The return type must be a primitive, entity or complex type, or a collection of primitive, entity or complex types. The action may also define zero or more elements to be used during the execution of the action. Attribute Name The edm:Action element MUST include a Name attribute whose value is a . Action Overload Rules actions support overloading (multiple actions having the same name within the same namespace) by binding parameter type. The combination of action name and the binding parameter type MUST be unique within a namespace. actions do not support overloads. The of all unbound actions MUST be unique within a namespace. An unbound action MAY have the same name as a bound action. Attribute IsBound An action element MAY specify a value for the IsBound attribute. Actions whose IsBound attribute is false or not specified are considered unbound. Unbound actions are invoked through an . Actions IsBound attribute is true are considered bound. Bound actions are invoked by appending a segment containing the qualified action name to a segment of the appropriate binding parameter type within the resource path. Bound actions MUST contain at least one element, and the first parameter is the binding parameter. The binding parameter can be of any type, and it MAY be . Attribute EntitySetPath actions that return an entity or a collection of entities MAY specify a value for the EntitySetPath attribute if determination of the entity set for the return type is contingent on the binding parameter. The value for the EntitySetPath attribute consists of a series of segments joined together with forward slashes. The first segment of the entity set path MUST be the name of the binding parameter. The remaining segments of the entity set path MUST represent navigation segments or type casts. A navigation segment names the of the to be traversed. A type cast segment names the of the entity type that should be returned from the type cast. Element edm:Function The edm:Function element represents a function in an entity Functions MUST NOT have observable side effects and MUST return a single instance or a collection of instances of any type. Functions MAY be composable.
and Function Element edm:Action The edm:Action element represents an action in an entity Actions MAY have observable side effects and MAY return a single instance or a collection of instances of any type. Actions cannot be composed with additional path segments. The action MAY specify a return type using the element. The return type must be a primitive, entity or complex type, or a collection of primitive, entity or complex types. The action may also define zero or more elements to be used during the execution of the action. Attribute Name The edm:Action element MUST include a Name attribute whose value is a . Action Overload Rules actions support overloading (multiple actions having the same name within the same namespace) by binding parameter type. The combination of action name and the binding parameter type MUST be unique within a namespace. actions do not support overloads. The of all unbound actions MUST be unique within a namespace. An unbound action MAY have the same name as a bound action. Attribute IsBound An action element MAY specify a value for the IsBound attribute. Actions whose IsBound attribute is false or not specified are considered unbound. Unbound actions are invoked through an . Actions IsBound attribute is true are considered bound. Bound actions are invoked by appending a segment containing the qualified action name to a segment of the appropriate binding parameter type within the resource path. Bound actions MUST contain at least one element, and the first parameter is the binding parameter. The binding parameter can be of any type, and it MAY be . Attribute EntitySetPath actions that return an entity or a collection of entities MAY specify a value for the EntitySetPath attribute if determination of the entity set for the return type is contingent on the binding parameter. The value for the EntitySetPath attribute consists of a series of segments joined together with forward slashes. The first segment of the entity set path MUST be the name of the binding parameter. The remaining segments of the entity set path MUST represent navigation segments or type casts. A navigation segment names the of the to be traversed. A type cast segment names the of the entity type that should be returned from the type cast. Element edm:Function The edm:Function element represents a function in an entity Functions MUST NOT have observable side effects and MUST return a single instance or a collection of instances of any type. Functions MAY be composable.
odata-v4.0-wd08-part3-csdl-2015-05-07.docx