RuntimeDbFunction Constructor

Definition

Initializes a new instance of the RuntimeDbFunction class.

C#
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);

Parameters

modelName
String

The model name.

model
RuntimeModel

The model.

returnType
Type

The return type.

storeName
String

The store name.

schema
String

The store schema.

storeType
String

The store type.

methodInfo
MethodInfo

The mapped MethodInfo.

scalar
Boolean

Whether the return type is scalar.

aggregate
Boolean

Whether the function is an aggregate.

nullable
Boolean

Whether the function is nullable.

builtIn
Boolean

Whether the function is built-in.

typeMapping
RelationalTypeMapping

The type mapping for the return value.

translation
Func<IReadOnlyList<SqlExpression>,SqlExpression>

The function translation.

Applies to

Proizvod Verzije
Entity Framework Core 6.0, 7.0, 8.0, 9.0