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.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för