RelationalModelBuilderExtensions.HasDbFunction 方法

定义

重载

HasDbFunction(ModelBuilder, MethodInfo)

在面向关系数据库时配置数据库函数。

HasDbFunction(IConventionModelBuilder, MethodInfo, Boolean)

配置关系数据库函数。

HasDbFunction(ModelBuilder, MethodInfo, Action<DbFunctionBuilder>)

在面向关系数据库时配置数据库函数。

HasDbFunction(IConventionModelBuilder, String, Type, Boolean)

配置关系数据库函数。

HasDbFunction<TResult>(ModelBuilder, Expression<Func<TResult>>)

在面向关系数据库时配置数据库函数。

HasDbFunction(ModelBuilder, MethodInfo)

Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs

在面向关系数据库时配置数据库函数。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.DbFunctionBuilder HasDbFunction (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, System.Reflection.MethodInfo methodInfo);
static member HasDbFunction : Microsoft.EntityFrameworkCore.ModelBuilder * System.Reflection.MethodInfo -> Microsoft.EntityFrameworkCore.Metadata.Builders.DbFunctionBuilder
<Extension()>
Public Function HasDbFunction (modelBuilder As ModelBuilder, methodInfo As MethodInfo) As DbFunctionBuilder

参数

modelBuilder
ModelBuilder

模型生成器。

methodInfo
MethodInfo

此 dbFunction 使用的 methodInfo。

返回

用于进一步配置函数的生成器。

注解

有关详细信息和示例 ,请参阅数据库函数

适用于

HasDbFunction(IConventionModelBuilder, MethodInfo, Boolean)

Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs

配置关系数据库函数。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDbFunctionBuilder HasDbFunction (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder modelBuilder, System.Reflection.MethodInfo methodInfo, bool fromDataAnnotation = false);
static member HasDbFunction : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder * System.Reflection.MethodInfo * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDbFunctionBuilder
<Extension()>
Public Function HasDbFunction (modelBuilder As IConventionModelBuilder, methodInfo As MethodInfo, Optional fromDataAnnotation As Boolean = false) As IConventionDbFunctionBuilder

参数

modelBuilder
IConventionModelBuilder

模型生成器。

methodInfo
MethodInfo

此函数使用的方法。

fromDataAnnotation
Boolean

指示是否使用数据注释指定配置。

返回

用于进一步配置函数的生成器。

注解

有关详细信息和示例 ,请参阅数据库函数

适用于

HasDbFunction(ModelBuilder, MethodInfo, Action<DbFunctionBuilder>)

Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs

在面向关系数据库时配置数据库函数。

public static Microsoft.EntityFrameworkCore.ModelBuilder HasDbFunction (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, System.Reflection.MethodInfo methodInfo, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.DbFunctionBuilder> builderAction);
static member HasDbFunction : Microsoft.EntityFrameworkCore.ModelBuilder * System.Reflection.MethodInfo * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.DbFunctionBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasDbFunction (modelBuilder As ModelBuilder, methodInfo As MethodInfo, builderAction As Action(Of DbFunctionBuilder)) As ModelBuilder

参数

modelBuilder
ModelBuilder

模型生成器。

methodInfo
MethodInfo

此 dbFunction 使用的 methodInfo。

builderAction
Action<DbFunctionBuilder>

执行序列配置的操作。

返回

用于进一步配置函数的生成器。

注解

有关详细信息和示例 ,请参阅数据库函数

适用于

HasDbFunction(IConventionModelBuilder, String, Type, Boolean)

Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs

配置关系数据库函数。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDbFunctionBuilder HasDbFunction (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder modelBuilder, string name, Type returnType, bool fromDataAnnotation = false);
static member HasDbFunction : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder * string * Type * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDbFunctionBuilder
<Extension()>
Public Function HasDbFunction (modelBuilder As IConventionModelBuilder, name As String, returnType As Type, Optional fromDataAnnotation As Boolean = false) As IConventionDbFunctionBuilder

参数

modelBuilder
IConventionModelBuilder

模型生成器。

name
String

函数的名称。

returnType
Type

函数的返回类型。

fromDataAnnotation
Boolean

指示是否使用数据注释指定配置。

返回

用于进一步配置函数的生成器。

注解

有关详细信息和示例 ,请参阅数据库函数

适用于

HasDbFunction<TResult>(ModelBuilder, Expression<Func<TResult>>)

Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs

在面向关系数据库时配置数据库函数。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.DbFunctionBuilder HasDbFunction<TResult> (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, System.Linq.Expressions.Expression<Func<TResult>> expression);
static member HasDbFunction : Microsoft.EntityFrameworkCore.ModelBuilder * System.Linq.Expressions.Expression<Func<'Result>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.DbFunctionBuilder
<Extension()>
Public Function HasDbFunction(Of TResult) (modelBuilder As ModelBuilder, expression As Expression(Of Func(Of TResult))) As DbFunctionBuilder

类型参数

TResult

参数

modelBuilder
ModelBuilder

模型生成器。

expression
Expression<Func<TResult>>

此 dbFunction 使用的方法。

返回

用于进一步配置函数的生成器。

注解

有关详细信息和示例 ,请参阅数据库函数

适用于