DbExpressionBuilder.GetEntityRef(DbExpression) Método

Definição

Cria uma nova DbEntityRefExpression que recupera a referência da entidade especificada no formulário estrutural.Creates a new DbEntityRefExpression that retrieves the ref of the specified entity in structural form.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbEntityRefExpression ^ GetEntityRef(System::Data::Common::CommandTrees::DbExpression ^ argument);
public static System.Data.Common.CommandTrees.DbEntityRefExpression GetEntityRef (this System.Data.Common.CommandTrees.DbExpression argument);
static member GetEntityRef : System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbEntityRefExpression
<Extension()>
Public Function GetEntityRef (argument As DbExpression) As DbEntityRefExpression

Parâmetros

argument
DbExpression

A expressão que fornece a entidade.The expression that provides the entity. Essa expressão deve ter um tipo de resultado de entidade.This expression must have an entity result type.

Retornos

DbEntityRefExpression

Uma nova DbEntityRefExpression que recupera uma referência para a entidade especificada.A new DbEntityRefExpression that retrieves a reference to the specified entity.

Exceções

argument é nulo.argument is null.

argument não tem um tipo de resultado de entidade.argument does not have an entity result type.

Aplica-se a