Sdílet prostřednictvím


RuntimeDbFunction Konstruktor

Definice

Inicializuje novou instanci RuntimeDbFunction třídy.

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)

Parametry

modelName
String

Název modelu.

model
RuntimeModel

Model.

returnType
Type

Návratový typ.

storeName
String

Název obchodu.

schema
String

Schéma úložiště.

storeType
String

Typ úložiště.

methodInfo
MethodInfo

Mapovaný MethodInfo.

scalar
Boolean

Určuje, jestli je návratový typ skalární.

aggregate
Boolean

Určuje, jestli je funkce agregace.

nullable
Boolean

Určuje, jestli je funkce s možnou hodnotou null.

builtIn
Boolean

Určuje, jestli je funkce integrovaná.

typeMapping
RelationalTypeMapping

Mapování typu pro návratnou hodnotu.

translation
Func<IReadOnlyList<SqlExpression>,SqlExpression>

Překlad funkce.

Platí pro