DbExpressionBuilder.Property Méthode

Définition

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

Surcharges

Property(DbExpression, EdmProperty)

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

Property(DbExpression, NavigationProperty)

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

Property(DbExpression, RelationshipEndMember)

Crée une DbPropertyExpression représentant la récupération du membre de fin de relation spécifié.

Property(DbExpression, String)

Crée une DbPropertyExpression représentant la récupération de la propriété d'instance portant le nom spécifié à partir de l'instance indiquée.

Property(DbExpression, EdmProperty)

Crée une DbPropertyExpression représentant la récupération de la propriété de 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 est null ou instance est null et la propriété n'est pas statique.

S’applique à

Property(DbExpression, NavigationProperty)

Crée une 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 la propriété de navigation doit être récupérée.

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 est null.

S’applique à

Property(DbExpression, RelationshipEndMember)

Crée une DbPropertyExpression représentant la récupération du membre de fin 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 le membre de terminaison de relation doit être récupéré.

relationshipEnd
RelationshipEndMember

Métadonnées du membre de terminaison de relation à récupérer.

Retours

Nouvelle DbPropertyExpression représentant la récupération de membre de terminaison de relation.

Exceptions

relationshipEnd est null ou instance est null et la propriété n'est pas statique.

S’applique à

Property(DbExpression, String)

Crée une DbPropertyExpression représentant la récupération de la propriété d'instance portant le nom spécifié à partir de l'instance indiqué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 est null ou instance est null et la propriété n'est pas statique.

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

S’applique à