RelationalModelCustomizer.FindDbFunctions(ModelBuilder, DbContext) 方法

定义

将 添加到在标记为 DbFunctionAttribute的上下文上作为公共静态方法找到的模型函数映射。

protected virtual void FindDbFunctions (Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Microsoft.EntityFrameworkCore.DbContext context);
abstract member FindDbFunctions : Microsoft.EntityFrameworkCore.ModelBuilder * Microsoft.EntityFrameworkCore.DbContext -> unit
override this.FindDbFunctions : Microsoft.EntityFrameworkCore.ModelBuilder * Microsoft.EntityFrameworkCore.DbContext -> unit
Protected Overridable Sub FindDbFunctions (modelBuilder As ModelBuilder, context As DbContext)

参数

modelBuilder
ModelBuilder

ModelBuilder用于生成模型的 。

context
DbContext

要查找其函数方法的上下文。

适用于