EdmEntityContainer.AddFunctionImport 方法 (String, IEdmTypeReference, IEdmExpression, Boolean, Boolean, Boolean)
建立函數匯入並將其加入至此實體容器。
命名空間: Microsoft.Data.Edm.Library
組件: Microsoft.Data.Edm (在 Microsoft.Data.Edm.dll 中)
語法
'宣告
Public Overridable Function AddFunctionImport ( _
name As String, _
returnType As IEdmTypeReference, _
entitySet As IEdmExpression, _
sideEffecting As Boolean, _
composable As Boolean, _
bindable As Boolean _
) As EdmFunctionImport
'用途
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
參數
- name
型別:System.String
函數匯入的名稱。
- returnType
型別:Microsoft.Data.Edm.IEdmTypeReference
函數匯入的傳回型別。
- entitySet
型別:Microsoft.Data.Edm.Expressions.IEdmExpression
含有此函數匯入所傳回之實體的實體集。支援的兩種運算式類型是 IEdmEntitySetReferenceExpression 和 IEdmPathExpression。
- sideEffecting
型別:System.Boolean
true 表示此函數匯入有副作用,否則為 false。
- composable
型別:System.Boolean
true 表示此函數匯入可在運算式內部組合,否則為 false。
- bindable
型別:System.Boolean
true 表示此函數匯入可當做此函數匯入第一個參數型別的擴充方法使用,否則為 false。
傳回值
型別:Microsoft.Data.Edm.Library.EdmFunctionImport
建立的函數匯入。