ODataEntityTypeSerializer.CreateODataAction Method (IEdmFunctionImport, EntityInstanceContext)
Creates an ODataAction to be written for the given action and the entity instance.
Namespace: System.Web.Http.OData.Formatter.Serialization
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
public virtual ODataAction CreateODataAction(
IEdmFunctionImport action,
EntityInstanceContext entityInstanceContext
)
public:
virtual ODataAction^ CreateODataAction(
IEdmFunctionImport^ action,
EntityInstanceContext^ entityInstanceContext
)
abstract CreateODataAction :
action:IEdmFunctionImport *
entityInstanceContext:EntityInstanceContext -> ODataAction
override CreateODataAction :
action:IEdmFunctionImport *
entityInstanceContext:EntityInstanceContext -> ODataAction
Public Overridable Function CreateODataAction (
action As IEdmFunctionImport,
entityInstanceContext As EntityInstanceContext
) As ODataAction
Parameters
action
Type: Microsoft.Data.Edm.IEdmFunctionImportThe OData action.
entityInstanceContext
Type: System.Web.Http.OData.EntityInstanceContextThe context for the entity instance being written.
Return Value
Type: Microsoft.Data.OData.ODataAction
The created action or null if the action should not be written.
See Also
ODataEntityTypeSerializer Class
System.Web.Http.OData.Formatter.Serialization Namespace
Return to top