FluentApiCodeFragment Class

Definition

Represents a fluent API method call.

public class FluentApiCodeFragment : Microsoft.EntityFrameworkCore.Design.IMethodCallCodeFragment
type FluentApiCodeFragment = class
    interface IMethodCallCodeFragment
Public Class FluentApiCodeFragment
Implements IMethodCallCodeFragment
Inheritance
FluentApiCodeFragment
Implements

Constructors

FluentApiCodeFragment(String)

Initializes a new instance of the FluentApiCodeFragment class.

Properties

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

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

IMethodCallCodeFragment.Arguments
IMethodCallCodeFragment.ChainedCall
IMethodCallCodeFragment.TypeArguments

Applies to