EdmEntityContainer.AddFunctionImport Method (String, IEdmTypeReference, IEdmExpression, Boolean, Boolean, Boolean)
Creates and adds a function import to this entity container.
Namespace: Microsoft.Data.Edm.Library
Assembly: Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)
Syntax
'Declaration
Public Overridable Function AddFunctionImport ( _
name As String, _
returnType As IEdmTypeReference, _
entitySet As IEdmExpression, _
sideEffecting As Boolean, _
composable As Boolean, _
bindable As Boolean _
) As EdmFunctionImport
'Usage
Dim instance As EdmEntityContainer
Dim name As String
Dim returnType As IEdmTypeReference
Dim entitySet As IEdmExpression
Dim sideEffecting As Boolean
Dim composable As Boolean
Dim bindable As Boolean
Dim returnValue As EdmFunctionImport
returnValue = instance.AddFunctionImport(name, _
returnType, entitySet, sideEffecting, _
composable, bindable)
public virtual EdmFunctionImport AddFunctionImport(
string name,
IEdmTypeReference returnType,
IEdmExpression entitySet,
bool sideEffecting,
bool composable,
bool bindable
)
public:
virtual EdmFunctionImport^ AddFunctionImport(
String^ name,
IEdmTypeReference^ returnType,
IEdmExpression^ entitySet,
bool sideEffecting,
bool composable,
bool bindable
)
abstract AddFunctionImport :
name:string *
returnType:IEdmTypeReference *
entitySet:IEdmExpression *
sideEffecting:bool *
composable:bool *
bindable:bool -> EdmFunctionImport
override AddFunctionImport :
name:string *
returnType:IEdmTypeReference *
entitySet:IEdmExpression *
sideEffecting:bool *
composable:bool *
bindable:bool -> EdmFunctionImport
public function AddFunctionImport(
name : String,
returnType : IEdmTypeReference,
entitySet : IEdmExpression,
sideEffecting : boolean,
composable : boolean,
bindable : boolean
) : EdmFunctionImport
Parameters
- name
Type: System.String
The name of the function import.
- returnType
Type: Microsoft.Data.Edm.IEdmTypeReference
The return type of the function import.
- entitySet
Type: Microsoft.Data.Edm.Expressions.IEdmExpression
An entity set containing entities returned by this function import. The two expression kinds supported are IEdmEntitySetReferenceExpression and IEdmPathExpression.
- sideEffecting
Type: System.Boolean
true to indicate that this function import has side-effects; otherwise, false.
- composable
Type: System.Boolean
true to indicate that this function import can be composed inside expressions; otherwise, false.
- bindable
Type: System.Boolean
true to indicate that this function import can be used as an extension method for the type of the first parameter of this function import; otherwise, false.
Return Value
Type: Microsoft.Data.Edm.Library.EdmFunctionImport
The created function import.