MethodCallCodeFragment Constructors

Definition

Overloads

MethodCallCodeFragment(MethodInfo, Object[])

Initializes a new instance of the MethodCallCodeFragment class.

MethodCallCodeFragment(String, Object[])
Obsolete.

Initializes a new instance of the MethodCallCodeFragment class.

MethodCallCodeFragment(MethodInfo, Object[], MethodCallCodeFragment)
Obsolete.

Initializes a new instance of the MethodCallCodeFragment class.

MethodCallCodeFragment(String, Object[], MethodCallCodeFragment)
Obsolete.

Initializes a new instance of the MethodCallCodeFragment class.

MethodCallCodeFragment(MethodInfo, Object[])

Initializes a new instance of the MethodCallCodeFragment class.

public MethodCallCodeFragment (System.Reflection.MethodInfo methodInfo, params object?[] arguments);
new Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment : System.Reflection.MethodInfo * obj[] -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
Public Sub New (methodInfo As MethodInfo, ParamArray arguments As Object())

Parameters

methodInfo
MethodInfo

The method's MethodInfo.

arguments
Object[]

The method call's arguments. Can be NestedClosureCodeFragment.

Applies to

MethodCallCodeFragment(String, Object[])

Caution

Use the overload accepting a MethodInfo

Initializes a new instance of the MethodCallCodeFragment class.

public MethodCallCodeFragment (string method, params object[] arguments);
[System.Obsolete("Use the overload accepting a MethodInfo")]
public MethodCallCodeFragment (string method, params object?[] arguments);
public MethodCallCodeFragment (string method, params object?[] arguments);
new Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment : string * obj[] -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
[<System.Obsolete("Use the overload accepting a MethodInfo")>]
new Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment : string * obj[] -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
Public Sub New (method As String, ParamArray arguments As Object())

Parameters

method
String

The method's name.

arguments
Object[]

The method call's arguments. Can be a fragment like NestedClosureCodeFragment or PropertyAccessorCodeFragment.

Attributes

Applies to

MethodCallCodeFragment(MethodInfo, Object[], MethodCallCodeFragment)

Caution

Use the constructor without a chained call, and then invoke Chain() on the result

Initializes a new instance of the MethodCallCodeFragment class.

[System.Obsolete("Use the constructor without a chained call, and then invoke Chain() on the result", true)]
public MethodCallCodeFragment (System.Reflection.MethodInfo methodInfo, object?[] arguments, Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment chainedCall);
[<System.Obsolete("Use the constructor without a chained call, and then invoke Chain() on the result", true)>]
new Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment : System.Reflection.MethodInfo * obj[] * Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
Public Sub New (methodInfo As MethodInfo, arguments As Object(), chainedCall As MethodCallCodeFragment)

Parameters

methodInfo
MethodInfo

The method's MethodInfo.

arguments
Object[]

The method call's arguments. Can be NestedClosureCodeFragment.

chainedCall
MethodCallCodeFragment

The next method call to chain after this.

Attributes

Applies to

MethodCallCodeFragment(String, Object[], MethodCallCodeFragment)

Caution

Use the overload accepting a MethodInfo, and then invoke Chain on the instance for the chained call

Initializes a new instance of the MethodCallCodeFragment class.

public MethodCallCodeFragment (string method, object[] arguments, Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment chainedCall);
[System.Obsolete("Use the overload accepting a MethodInfo, and then invoke Chain on the instance for the chained call")]
public MethodCallCodeFragment (string method, object?[] arguments, Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment chainedCall);
new Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment : string * obj[] * Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
[<System.Obsolete("Use the overload accepting a MethodInfo, and then invoke Chain on the instance for the chained call")>]
new Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment : string * obj[] * Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
Public Sub New (method As String, arguments As Object(), chainedCall As MethodCallCodeFragment)

Parameters

method
String

The method's name.

arguments
Object[]

The method call's arguments. Can be NestedClosureCodeFragment.

chainedCall
MethodCallCodeFragment

The next method call to chain after this.

Attributes

Applies to