DbExpressionBuilder.Property Méthode

Définition

Crée un nouveau DbPropertyExpression représentant la récupération de la propriété spécifiée.

Surcharges

Nom Description
Property(DbExpression, EdmProperty)

Crée un nouveau DbPropertyExpression représentant la récupération de la propriété spécifiée.

Property(DbExpression, NavigationProperty)

Crée un nouveau DbPropertyExpression représentant la récupération de la propriété de navigation spécifiée.

Property(DbExpression, RelationshipEndMember)

Crée un nouveau DbPropertyExpression représentant la récupération du membre final de relation spécifié.

Property(DbExpression, String)

Crée un nouveau DbPropertyExpression représentant la récupération de la propriété d’instance avec le nom spécifié à partir de l’instance donnée.

Property(DbExpression, EdmProperty)

Crée un nouveau DbPropertyExpression représentant la récupération de la propriété spécifiée.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbPropertyExpression ^ Property(System::Data::Common::CommandTrees::DbExpression ^ instance, System::Data::Metadata::Edm::EdmProperty ^ propertyMetadata);
public static System.Data.Common.CommandTrees.DbPropertyExpression Property(this System.Data.Common.CommandTrees.DbExpression instance, System.Data.Metadata.Edm.EdmProperty propertyMetadata);
static member Property : System.Data.Common.CommandTrees.DbExpression * System.Data.Metadata.Edm.EdmProperty -> System.Data.Common.CommandTrees.DbPropertyExpression
<Extension()>
Public Function Property (instance As DbExpression, propertyMetadata As EdmProperty) As DbPropertyExpression

Paramètres

instance
DbExpression

Instance à partir de laquelle récupérer la propriété. Peut être null si la propriété est statique.

propertyMetadata
EdmProperty

Métadonnées de la propriété à récupérer.

Retours

Nouvelle DbPropertyExpression représentant la récupération de propriété.

Exceptions

propertyMetadata a la valeur Null ou instance a la valeur Null et la propriété n’est pas statique.

S’applique à

Property(DbExpression, NavigationProperty)

Crée un nouveau DbPropertyExpression représentant la récupération de la propriété de navigation spécifiée.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbPropertyExpression ^ Property(System::Data::Common::CommandTrees::DbExpression ^ instance, System::Data::Metadata::Edm::NavigationProperty ^ navigationProperty);
public static System.Data.Common.CommandTrees.DbPropertyExpression Property(this System.Data.Common.CommandTrees.DbExpression instance, System.Data.Metadata.Edm.NavigationProperty navigationProperty);
static member Property : System.Data.Common.CommandTrees.DbExpression * System.Data.Metadata.Edm.NavigationProperty -> System.Data.Common.CommandTrees.DbPropertyExpression
<Extension()>
Public Function Property (instance As DbExpression, navigationProperty As NavigationProperty) As DbPropertyExpression

Paramètres

instance
DbExpression

Instance à partir de laquelle récupérer la propriété de navigation.

navigationProperty
NavigationProperty

Métadonnées de la propriété de navigation à récupérer.

Retours

Nouvelle DbPropertyExpression représentant la récupération de propriété de navigation.

Exceptions

navigationProperty ou instance a la valeur Null.

S’applique à

Property(DbExpression, RelationshipEndMember)

Crée un nouveau DbPropertyExpression représentant la récupération du membre final de relation spécifié.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbPropertyExpression ^ Property(System::Data::Common::CommandTrees::DbExpression ^ instance, System::Data::Metadata::Edm::RelationshipEndMember ^ relationshipEnd);
public static System.Data.Common.CommandTrees.DbPropertyExpression Property(this System.Data.Common.CommandTrees.DbExpression instance, System.Data.Metadata.Edm.RelationshipEndMember relationshipEnd);
static member Property : System.Data.Common.CommandTrees.DbExpression * System.Data.Metadata.Edm.RelationshipEndMember -> System.Data.Common.CommandTrees.DbPropertyExpression
<Extension()>
Public Function Property (instance As DbExpression, relationshipEnd As RelationshipEndMember) As DbPropertyExpression

Paramètres

instance
DbExpression

Instance à partir de laquelle récupérer le membre final de la relation.

relationshipEnd
RelationshipEndMember

Métadonnées pour le membre final de relation à récupérer.

Retours

Nouvelle DbPropertyExpression représentant la récupération des membres finaux de la relation.

Exceptions

relationshipEnd a la valeur Null ou instance a la valeur Null et la propriété n’est pas statique.

S’applique à

Property(DbExpression, String)

Crée un nouveau DbPropertyExpression représentant la récupération de la propriété d’instance avec le nom spécifié à partir de l’instance donnée.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbPropertyExpression ^ Property(System::Data::Common::CommandTrees::DbExpression ^ instance, System::String ^ propertyName);
public static System.Data.Common.CommandTrees.DbPropertyExpression Property(this System.Data.Common.CommandTrees.DbExpression instance, string propertyName);
static member Property : System.Data.Common.CommandTrees.DbExpression * string -> System.Data.Common.CommandTrees.DbPropertyExpression
<Extension()>
Public Function Property (instance As DbExpression, propertyName As String) As DbPropertyExpression

Paramètres

instance
DbExpression

Instance à partir de laquelle récupérer la propriété.

propertyName
String

Nom de la propriété à récupérer.

Retours

Nouvelle DbPropertyExpression qui représente la récupération de propriété.

Exceptions

propertyName a la valeur Null ou instance a la valeur Null et la propriété n’est pas statique.

Aucune propriété portant le nom spécifié n’est déclarée par le type de instance.

S’applique à