CoreTypeMapping.GenerateCodeLiteral(Object) Method

Definition

Creates a an expression tree that can be used to generate code for the literal value. Currently, only very basic expressions such as constructor calls and factory methods taking simple constants are supported.

public virtual System.Linq.Expressions.Expression GenerateCodeLiteral (object value);
abstract member GenerateCodeLiteral : obj -> System.Linq.Expressions.Expression
override this.GenerateCodeLiteral : obj -> System.Linq.Expressions.Expression
Public Overridable Function GenerateCodeLiteral (value As Object) As Expression

Parameters

value
Object

The value for which a literal is needed.

Returns

An expression tree that can be used to generate code for the literal value.

Applies to