DbExpressionBuilder.GetEntityRef Method (DbExpression)
Creates a new DbEntityRefExpression that retrieves the ref of the specified entity in structural form.
Assembly: EntityFramework (in EntityFramework.dll)
Parameters
- argument
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpression
The expression that provides the entity. This expression must have an entity result type.
Return Value
Type: System.Data.Entity.Core.Common.CommandTrees.DbEntityRefExpressionA new DbEntityRefExpression that retrieves a reference to the specified entity.
Exception | Condition |
---|---|
ArgumentNullException | argument is null. |
ArgumentException | argument does not have an entity result type. |