共用方式為


RuntimeDbFunction 建構函式

定義

初始化 RuntimeDbFunction 類別的新執行個體。

public RuntimeDbFunction (string modelName, Microsoft.EntityFrameworkCore.Metadata.RuntimeModel model, Type returnType, string storeName, string? schema = default, string? storeType = default, System.Reflection.MethodInfo? methodInfo = default, bool scalar = false, bool aggregate = false, bool nullable = false, bool builtIn = false, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? typeMapping = default, Func<System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression>,Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression>? translation = default);
new Microsoft.EntityFrameworkCore.Metadata.RuntimeDbFunction : string * Microsoft.EntityFrameworkCore.Metadata.RuntimeModel * Type * string * string * string * System.Reflection.MethodInfo * bool * bool * bool * bool * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping * Func<System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression>, Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> -> Microsoft.EntityFrameworkCore.Metadata.RuntimeDbFunction
Public Sub New (modelName As String, model As RuntimeModel, returnType As Type, storeName As String, Optional schema As String = Nothing, Optional storeType As String = Nothing, Optional methodInfo As MethodInfo = Nothing, Optional scalar As Boolean = false, Optional aggregate As Boolean = false, Optional nullable As Boolean = false, Optional builtIn As Boolean = false, Optional typeMapping As RelationalTypeMapping = Nothing, Optional translation As Func(Of IReadOnlyList(Of SqlExpression), SqlExpression) = Nothing)

參數

modelName
String

模型名稱。

model
RuntimeModel

模型本身。

returnType
Type

傳回類型。

storeName
String

存放區名稱。

schema
String

存放區架構。

storeType
String

存放區類型。

methodInfo
MethodInfo

對應的 MethodInfo

scalar
Boolean

傳回型別是否為純量。

aggregate
Boolean

函式是否為匯總。

nullable
Boolean

函式是否可為 Null。

builtIn
Boolean

函式是否內建。

typeMapping
RelationalTypeMapping

傳回值的型別對應。

translation
Func<IReadOnlyList<SqlExpression>,SqlExpression>

函式翻譯。

適用於