Sdílet prostřednictvím


BindingPathConfiguration<TStructuralType>.HasSinglePath Metoda

Definice

Přetížení

HasSinglePath<TTargetType,TDerivedType>(Expression<Func<TDerivedType,TTargetType>>, Boolean, Boolean)

Nakonfiguruje požadovanou cestu 1:1 odvozeného typu pro tuto cestu vazby.

HasSinglePath<TTargetType,TDerivedType>(Expression<Func<TDerivedType,TTargetType>>)

Nakonfiguruje požadovanou cestu 1:1 odvozeného typu pro tuto cestu vazby.

HasSinglePath<TTargetType>(Expression<Func<TStructuralType,TTargetType>>)

Nakonfiguruje pro tuto cestu vazby cestu 1:1.

HasSinglePath<TTargetType>(Expression<Func<TStructuralType,TTargetType>>, Boolean, Boolean)

Nakonfiguruje pro tuto cestu vazby cestu 1:1.

HasSinglePath<TTargetType,TDerivedType>(Expression<Func<TDerivedType,TTargetType>>, Boolean, Boolean)

Nakonfiguruje požadovanou cestu 1:1 odvozeného typu pro tuto cestu vazby.

public Microsoft.AspNet.OData.Builder.BindingPathConfiguration<TTargetType> HasSinglePath<TTargetType,TDerivedType> (System.Linq.Expressions.Expression<Func<TDerivedType,TTargetType>> pathExpression, bool required, bool contained) where TTargetType : class where TDerivedType : class, TStructuralType;
member this.HasSinglePath : System.Linq.Expressions.Expression<Func<#'StructuralType, 'argetType>> * bool * bool -> Microsoft.AspNet.OData.Builder.BindingPathConfiguration<'argetType (requires 'argetType : null)> (requires 'argetType : null)
Public Function HasSinglePath(Of TTargetType As Class, TDerivedType As Class) (pathExpression As Expression(Of Func(Of TDerivedType, TTargetType)), required As Boolean, contained As Boolean) As BindingPathConfiguration(Of TTargetType)

Parametry typu

TTargetType

Typ cílové vlastnosti.

TDerivedType

Odvozený typ struktury.

Parametry

pathExpression
Expression<Func<TDerivedType,TTargetType>>

Výraz lambda představující vlastnost cesty vazby pro relaci. Například v jazyce C# t => t.MyProperty a v jazyce Visual Basic .NET Function(t) t.MyProperty.

required
Boolean

Příznak představující požadovanou nebo volitelnou vlastnost cíle.

contained
Boolean

Příznak představující vlastnost target jako obsah.

Návraty

Objekt BindingPathConfiguration<TStructuralType> konfigurace, který lze použít k další konfiguraci cesty vazby nebo ukončení vazby.

Platí pro

HasSinglePath<TTargetType,TDerivedType>(Expression<Func<TDerivedType,TTargetType>>)

Nakonfiguruje požadovanou cestu 1:1 odvozeného typu pro tuto cestu vazby.

public Microsoft.AspNet.OData.Builder.BindingPathConfiguration<TTargetType> HasSinglePath<TTargetType,TDerivedType> (System.Linq.Expressions.Expression<Func<TDerivedType,TTargetType>> pathExpression) where TTargetType : class where TDerivedType : class, TStructuralType;
member this.HasSinglePath : System.Linq.Expressions.Expression<Func<#'StructuralType, 'argetType>> -> Microsoft.AspNet.OData.Builder.BindingPathConfiguration<'argetType (requires 'argetType : null)> (requires 'argetType : null)
Public Function HasSinglePath(Of TTargetType As Class, TDerivedType As Class) (pathExpression As Expression(Of Func(Of TDerivedType, TTargetType))) As BindingPathConfiguration(Of TTargetType)

Parametry typu

TTargetType

Typ cílové vlastnosti.

TDerivedType

Odvozený typ struktury.

Parametry

pathExpression
Expression<Func<TDerivedType,TTargetType>>

Výraz lambda představující vlastnost cesty vazby pro relaci. Například v jazyce C# t => t.MyProperty a v jazyce Visual Basic .NET Function(t) t.MyProperty.

Návraty

Objekt BindingPathConfiguration<TStructuralType> konfigurace, který lze použít k další konfiguraci cesty vazby nebo ukončení vazby.

Platí pro

HasSinglePath<TTargetType>(Expression<Func<TStructuralType,TTargetType>>)

Nakonfiguruje pro tuto cestu vazby cestu 1:1.

public Microsoft.AspNet.OData.Builder.BindingPathConfiguration<TTargetType> HasSinglePath<TTargetType> (System.Linq.Expressions.Expression<Func<TStructuralType,TTargetType>> pathExpression) where TTargetType : class;
member this.HasSinglePath : System.Linq.Expressions.Expression<Func<'StructuralType, 'argetType>> -> Microsoft.AspNet.OData.Builder.BindingPathConfiguration<'argetType (requires 'argetType : null)> (requires 'argetType : null)
Public Function HasSinglePath(Of TTargetType As Class) (pathExpression As Expression(Of Func(Of TStructuralType, TTargetType))) As BindingPathConfiguration(Of TTargetType)

Parametry typu

TTargetType

Typ cílové vlastnosti.

Parametry

pathExpression
Expression<Func<TStructuralType,TTargetType>>

Výraz lambda představující vlastnost cesty vazby pro relaci. Například v jazyce C# t => t.MyProperty a v jazyce Visual Basic .NET Function(t) t.MyProperty.

Návraty

Objekt BindingPathConfiguration<TStructuralType> konfigurace, který lze použít k další konfiguraci cesty vazby nebo ukončení vazby.

Platí pro

HasSinglePath<TTargetType>(Expression<Func<TStructuralType,TTargetType>>, Boolean, Boolean)

Nakonfiguruje pro tuto cestu vazby cestu 1:1.

public Microsoft.AspNet.OData.Builder.BindingPathConfiguration<TTargetType> HasSinglePath<TTargetType> (System.Linq.Expressions.Expression<Func<TStructuralType,TTargetType>> pathExpression, bool required, bool contained) where TTargetType : class;
member this.HasSinglePath : System.Linq.Expressions.Expression<Func<'StructuralType, 'argetType>> * bool * bool -> Microsoft.AspNet.OData.Builder.BindingPathConfiguration<'argetType (requires 'argetType : null)> (requires 'argetType : null)
Public Function HasSinglePath(Of TTargetType As Class) (pathExpression As Expression(Of Func(Of TStructuralType, TTargetType)), required As Boolean, contained As Boolean) As BindingPathConfiguration(Of TTargetType)

Parametry typu

TTargetType

Typ cílové vlastnosti.

Parametry

pathExpression
Expression<Func<TStructuralType,TTargetType>>

Výraz lambda představující vlastnost cesty vazby pro relaci. Například v jazyce C# t => t.MyProperty a v jazyce Visual Basic .NET Function(t) t.MyProperty.

required
Boolean

Příznak představující požadovanou nebo volitelnou vlastnost cíle.

contained
Boolean

Příznak představující vlastnost target jako obsah.

Návraty

Objekt BindingPathConfiguration<TStructuralType> konfigurace, který lze použít k další konfiguraci cesty vazby nebo ukončení vazby.

Platí pro