Method | Description | |
---|---|---|
VisitMember ( |
Replaces a DbQuery or DbQuery{T} property with a constant expression for the underlying ObjectQuery.
|
|
VisitMethodCall ( |
Replaces calls to DbContext.Set() with an expression for the equivalent ObjectQuery.
|
Method | Description | |
---|---|---|
CreateObjectQueryConstant ( object dbQuery ) : |
Takes a DbQuery{T} or DbQuery and creates an expression for the underlying ObjectQuery{T}.
|
|
ExtractObjectQuery ( object dbQuery ) : System.Data.Entity.Core.Objects.ObjectQuery |
Takes a DbQuery{T} or DbQuery and extracts the underlying ObjectQuery{T}.
|
|
GetContextFromConstantExpression ( |
Gets a DbContext value from the given member, or returns null if the member doesn't contain a DbContext instance.
|
|
GetContextFromMember ( |
Gets the DbContext instance from the given instance or static member, returning null if the member does not contain a DbContext instance.
|
|
GetExpressionValue ( |
Tries to retrieve the value of an expression If the expression is a constant, it returns the constant value. If the expression is a field or property access on an expression, it returns the value of it recursively. Otherwise it returns null
|
protected VisitMember ( |
||
node | The node to replace. | |
return |
protected VisitMethodCall ( |
||
node | The node to replace. | |
return |