Class NestedClosureCodeFragment
- Namespace
- Microsoft.EntityFrameworkCore.Design
- Assembly
- Microsoft.EntityFrameworkCore.dll
Represents a nested closure code fragment.
public class NestedClosureCodeFragment
- Inheritance
-
NestedClosureCodeFragment
- Inherited Members
Remarks
See Implementation of database providers and extensions for more information and examples.
Constructors
NestedClosureCodeFragment(string, MethodCallCodeFragment)
Initializes a new instance of the NestedClosureCodeFragment class.
public NestedClosureCodeFragment(string parameter, MethodCallCodeFragment methodCall)
Parameters
parameter
stringThe nested closure parameter's name.
methodCall
MethodCallCodeFragmentThe method call used as the body of the nested closure.
NestedClosureCodeFragment(string, IReadOnlyList<MethodCallCodeFragment>)
Initializes a new instance of the NestedClosureCodeFragment class.
public NestedClosureCodeFragment(string parameter, IReadOnlyList<MethodCallCodeFragment> methodCalls)
Parameters
parameter
stringThe nested closure parameter's name.
methodCalls
IReadOnlyList<MethodCallCodeFragment>The list of method calls used as the body of the nested closure.
Properties
MethodCalls
Gets the method calls used as the body of the nested closure.
public virtual IReadOnlyList<MethodCallCodeFragment> MethodCalls { get; }
Property Value
- IReadOnlyList<MethodCallCodeFragment>
The method call.
Parameter
Gets the nested closure parameter's name.
public virtual string Parameter { get; }
Property Value
- string
The parameter name.