Share via


FluentApiCodeFragment Class

Definition

Represents a fluent API method call.

[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
Inheritance
FluentApiCodeFragment
Attributes
Implements

Constructors

Name Description
FluentApiCodeFragment(String)

Initializes a new instance of the FluentApiCodeFragment class.

Properties

Name Description
Arguments

Gets the method call's arguments.

ChainedCall

Gets the next method call to chain after this.

DeclaringType

Gets the name of the method's declaring type.

IsHandledByDataAnnotations

Gets or sets a value indicating whether this method call has an equivalent data annotation.

Method

Gets the method's name.

Namespace

Gets the namespace of the method's declaring type.

TypeArguments

Gets the method call's generic type arguments.

Methods

Name Description
Chain(FluentApiCodeFragment)

Creates a method chain from this method to another.

FilterChain(Func<FluentApiCodeFragment,Boolean>)

Creates a new method chain with calls filtered based on a predicate.

From(MethodCallCodeFragment)

Creates a new fluent API method call from an existing method call.

GetRequiredUsings()

Gets the using statements required for this method chain.

Explicit Interface Implementations

Name Description
IMethodCallCodeFragment.Arguments
IMethodCallCodeFragment.ChainedCall
IMethodCallCodeFragment.TypeArguments

Applies to