Share via


SqlParameterExpression Constructors

Definition

Overloads

SqlParameterExpression(String, Type, RelationalTypeMapping)

Source:
SqlParameterExpression.cs
Source:
SqlParameterExpression.cs
Source:
SqlParameterExpression.cs

Creates a new instance of the SqlParameterExpression class.

public SqlParameterExpression(string name, Type type, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? typeMapping);
new Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlParameterExpression : string * Type * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlParameterExpression
Public Sub New (name As String, type As Type, typeMapping As RelationalTypeMapping)

Parameters

name
String

The parameter name.

type
Type

The Type of the expression.

typeMapping
RelationalTypeMapping

The RelationalTypeMapping associated with the expression.

Applies to

SqlParameterExpression(String, Type, Boolean, RelationalTypeMapping)

Source:
SqlParameterExpression.cs

Creates a new instance of the SqlParameterExpression class.

public SqlParameterExpression(string name, Type type, bool nullable, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? typeMapping);
new Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlParameterExpression : string * Type * bool * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlParameterExpression
Public Sub New (name As String, type As Type, nullable As Boolean, typeMapping As RelationalTypeMapping)

Parameters

name
String

The parameter name.

type
Type

The Type of the expression.

nullable
Boolean

Whether this parameter can have null values.

typeMapping
RelationalTypeMapping

The RelationalTypeMapping associated with the expression.

Applies to

SqlParameterExpression(String, String, Type, Boolean, Nullable<ParameterTranslationMode>, RelationalTypeMapping)

Source:
SqlParameterExpression.cs

Creates a new instance of the SqlParameterExpression class.

public SqlParameterExpression(string invariantName, string name, Type type, bool nullable, Microsoft.EntityFrameworkCore.ParameterTranslationMode? translationMode, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? typeMapping);
new Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlParameterExpression : string * string * Type * bool * Nullable<Microsoft.EntityFrameworkCore.ParameterTranslationMode> * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlParameterExpression
Public Sub New (invariantName As String, name As String, type As Type, nullable As Boolean, translationMode As Nullable(Of ParameterTranslationMode), typeMapping As RelationalTypeMapping)

Parameters

invariantName
String

The name of the parameter as it is recorded in Parameters.

name
String

The name of the parameter as it will be set on ParameterName and inside the SQL as a placeholder (before any additional placeholder character prefixing).

type
Type

The Type of the expression.

nullable
Boolean

Whether this parameter can have null values.

translationMode
Nullable<ParameterTranslationMode>

How the parameter should be handled.

typeMapping
RelationalTypeMapping

The RelationalTypeMapping associated with the expression.

Applies to