CoreTypeMapping.GenerateCodeLiteral(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for