Condividi tramite


SqlConstantExpression Constructors

Definition

Overloads

SqlConstantExpression(ConstantExpression, RelationalTypeMapping)
Obsolete.

Creates a new instance of the SqlConstantExpression class.

SqlConstantExpression(Object, RelationalTypeMapping)

Creates a new instance of the SqlConstantExpression class.

SqlConstantExpression(Object, Type, RelationalTypeMapping)

Creates a new instance of the SqlConstantExpression class.

SqlConstantExpression(ConstantExpression, RelationalTypeMapping)

Source:
SqlConstantExpression.cs
Source:
SqlConstantExpression.cs
Source:
SqlConstantExpression.cs
Source:
SqlConstantExpression.cs
Source:
SqlConstantExpression.cs
Source:
SqlConstantExpression.cs
Source:
SqlConstantExpression.cs

Caution

Call the constructor accepting a value (and possibly a Type) instead

Creates a new instance of the SqlConstantExpression class.

public SqlConstantExpression (System.Linq.Expressions.ConstantExpression constantExpression, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping);
public SqlConstantExpression (System.Linq.Expressions.ConstantExpression constantExpression, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? typeMapping);
[System.Obsolete("Call the constructor accepting a value (and possibly a Type) instead")]
public SqlConstantExpression (System.Linq.Expressions.ConstantExpression constantExpression, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? typeMapping);
new Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlConstantExpression : System.Linq.Expressions.ConstantExpression * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlConstantExpression
[<System.Obsolete("Call the constructor accepting a value (and possibly a Type) instead")>]
new Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlConstantExpression : System.Linq.Expressions.ConstantExpression * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlConstantExpression
Public Sub New (constantExpression As ConstantExpression, typeMapping As RelationalTypeMapping)

Parameters

constantExpression
ConstantExpression

A ConstantExpression.

typeMapping
RelationalTypeMapping

The RelationalTypeMapping associated with the expression.

Attributes

Applies to

SqlConstantExpression(Object, RelationalTypeMapping)

Source:
SqlConstantExpression.cs

Creates a new instance of the SqlConstantExpression class.

public SqlConstantExpression (object value, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? typeMapping);
new Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlConstantExpression : obj * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlConstantExpression
Public Sub New (value As Object, typeMapping As RelationalTypeMapping)

Parameters

value
Object

An Object to set the Value property equal to.

typeMapping
RelationalTypeMapping

The RelationalTypeMapping associated with the expression.

Applies to

SqlConstantExpression(Object, Type, RelationalTypeMapping)

Source:
SqlConstantExpression.cs

Creates a new instance of the SqlConstantExpression class.

public SqlConstantExpression (object? value, Type type, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? typeMapping);
new Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlConstantExpression : obj * Type * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlConstantExpression
Public Sub New (value As Object, type As Type, typeMapping As RelationalTypeMapping)

Parameters

value
Object

An Object to set the Value property equal to.

type
Type

The Type of the expression.

typeMapping
RelationalTypeMapping

The RelationalTypeMapping associated with the expression.

Applies to