语言

FluentApiCodeFragment 类

定义

表示 Fluent API 方法调用。

[System.Runtime.CompilerServices.Nullable(0)]
public class FluentApiCodeFragment : Microsoft.EntityFrameworkCore.Design.IMethodCallCodeFragment
public class FluentApiCodeFragment : Microsoft.EntityFrameworkCore.Design.IMethodCallCodeFragment
[<System.Runtime.CompilerServices.Nullable(0)>]
type FluentApiCodeFragment = class
    interface IMethodCallCodeFragment
type FluentApiCodeFragment = class
    interface IMethodCallCodeFragment
Public Class FluentApiCodeFragment
Implements IMethodCallCodeFragment
继承
FluentApiCodeFragment
特性
实现

构造函数

名称 说明
FluentApiCodeFragment(String)

初始化 FluentApiCodeFragment 类的新实例。

属性

名称 说明
Arguments

获取方法调用的参数。

ChainedCall

获取在此之后对链的下一个方法调用。

DeclaringType

获取方法声明类型的名称。

IsHandledByDataAnnotations

获取或设置一个值,该值指示此方法调用是否具有等效的数据注释。

Method

获取方法的名称。

Namespace

获取方法声明类型的命名空间。

TypeArguments

获取方法调用的泛型类型参数。

方法

名称 说明
Chain(FluentApiCodeFragment)

从此方法创建一个方法链到另一个方法链。

FilterChain(Func<FluentApiCodeFragment,Boolean>)

创建一个基于谓词筛选的调用的新方法链。

From(MethodCallCodeFragment)

从现有方法调用创建新的 Fluent API 方法调用。

GetRequiredUsings()

获取此方法链所需的 using 语句。

显式接口实现

名称 说明
IMethodCallCodeFragment.Arguments

表示 Fluent API 方法调用。

IMethodCallCodeFragment.ChainedCall

表示 Fluent API 方法调用。

IMethodCallCodeFragment.TypeArguments

表示 Fluent API 方法调用。

适用于