QueryCompilationContext.RegisterRuntimeParameter 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.
Registers a runtime parameter that is being added at some point during the compilation phase. A lambda must be provided, which will extract the parameter's value from the QueryContext every time the query is executed.
public virtual System.Linq.Expressions.ParameterExpression RegisterRuntimeParameter (string name, System.Linq.Expressions.LambdaExpression valueExtractor);
abstract member RegisterRuntimeParameter : string * System.Linq.Expressions.LambdaExpression -> System.Linq.Expressions.ParameterExpression
override this.RegisterRuntimeParameter : string * System.Linq.Expressions.LambdaExpression -> System.Linq.Expressions.ParameterExpression
Public Overridable Function RegisterRuntimeParameter (name As String, valueExtractor As LambdaExpression) As ParameterExpression
Parameters
- name
- String
- valueExtractor
- LambdaExpression
Returns
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework