StructuralTypeConfiguration<TStructuralType>.HasRequired Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
HasRequired<TTargetEntity>(Expression<Func<TStructuralType,TTargetEntity>>, Expression<Func<TStructuralType,TTargetEntity,Boolean>>, Expression<Func<TTargetEntity, TStructuralType>>) |
Nakonfiguruje požadovanou relaci s referenčním omezením z tohoto typu struktury. |
HasRequired<TTargetEntity>(Expression<Func<TStructuralType,TTargetEntity>>, Expression<Func<TStructuralType,TTargetEntity,Boolean>>, Expression<Func<TTargetEntity, IEnumerable<TStructuralType>>>) |
Nakonfiguruje požadovanou relaci s referenčním omezením z tohoto typu struktury. |
HasRequired<TTargetEntity>(Expression<Func<TStructuralType,TTargetEntity>>) |
Nakonfiguruje požadovanou relaci z tohoto typu struktury. |
HasRequired<TTargetEntity>(Expression<Func<TStructuralType,TTargetEntity>>, Expression<Func<TStructuralType,TTargetEntity,Boolean>>) |
Nakonfiguruje požadovanou relaci s referenčním omezením z tohoto typu struktury. |
HasRequired<TTargetEntity>(Expression<Func<TStructuralType,TTargetEntity>>, Expression<Func<TStructuralType,TTargetEntity,Boolean>>, Expression<Func<TTargetEntity, TStructuralType>>)
Nakonfiguruje požadovanou relaci s referenčním omezením z tohoto typu struktury.
public Microsoft.AspNet.OData.Builder.NavigationPropertyConfiguration HasRequired<TTargetEntity> (System.Linq.Expressions.Expression<Func<TStructuralType,TTargetEntity>> navigationPropertyExpression, System.Linq.Expressions.Expression<Func<TStructuralType,TTargetEntity,bool>> referentialConstraintExpression, System.Linq.Expressions.Expression<Func<TTargetEntity,TStructuralType>> partnerExpression) where TTargetEntity : class;
member this.HasRequired : System.Linq.Expressions.Expression<Func<'StructuralType, 'argetEntity>> * System.Linq.Expressions.Expression<Func<'StructuralType, 'argetEntity, bool>> * System.Linq.Expressions.Expression<Func<'argetEntity, 'StructuralType>> -> Microsoft.AspNet.OData.Builder.NavigationPropertyConfiguration (requires 'argetEntity : null)
Public Function HasRequired(Of TTargetEntity As Class) (navigationPropertyExpression As Expression(Of Func(Of TStructuralType, TTargetEntity)), referentialConstraintExpression As Expression(Of Func(Of TStructuralType, TTargetEntity, Boolean)), partnerExpression As Expression(Of Func(Of TTargetEntity, TStructuralType))) As NavigationPropertyConfiguration
Parametry typu
- TTargetEntity
Typ entity na druhém konci relace.
Parametry
- navigationPropertyExpression
- Expression<Func<TStructuralType,TTargetEntity>>
Výraz lambda představující vlastnost navigace pro relaci.
Například v jazyce C# t => t.Customer
a v jazyce Visual Basic .NET Function(t) t.Customer
.
- referentialConstraintExpression
- Expression<Func<TStructuralType,TTargetEntity,Boolean>>
Výraz lambda představující referenční omezení. Například v jazyce C# (o, c) => o.CustomerId == c.Id
a v jazyce Visual Basic .NET Function(o, c) c.CustomerId == c.Id
.
- partnerExpression
- Expression<Func<TTargetEntity,TStructuralType>>
Návraty
Objekt konfigurace, který lze použít k další konfiguraci relace.
Platí pro
HasRequired<TTargetEntity>(Expression<Func<TStructuralType,TTargetEntity>>, Expression<Func<TStructuralType,TTargetEntity,Boolean>>, Expression<Func<TTargetEntity, IEnumerable<TStructuralType>>>)
Nakonfiguruje požadovanou relaci s referenčním omezením z tohoto typu struktury.
public Microsoft.AspNet.OData.Builder.NavigationPropertyConfiguration HasRequired<TTargetEntity> (System.Linq.Expressions.Expression<Func<TStructuralType,TTargetEntity>> navigationPropertyExpression, System.Linq.Expressions.Expression<Func<TStructuralType,TTargetEntity,bool>> referentialConstraintExpression, System.Linq.Expressions.Expression<Func<TTargetEntity,System.Collections.Generic.IEnumerable<TStructuralType>>> partnerExpression) where TTargetEntity : class;
member this.HasRequired : System.Linq.Expressions.Expression<Func<'StructuralType, 'argetEntity>> * System.Linq.Expressions.Expression<Func<'StructuralType, 'argetEntity, bool>> * System.Linq.Expressions.Expression<Func<'argetEntity, seq<'StructuralType>>> -> Microsoft.AspNet.OData.Builder.NavigationPropertyConfiguration (requires 'argetEntity : null)
Public Function HasRequired(Of TTargetEntity As Class) (navigationPropertyExpression As Expression(Of Func(Of TStructuralType, TTargetEntity)), referentialConstraintExpression As Expression(Of Func(Of TStructuralType, TTargetEntity, Boolean)), partnerExpression As Expression(Of Func(Of TTargetEntity, IEnumerable(Of TStructuralType)))) As NavigationPropertyConfiguration
Parametry typu
- TTargetEntity
Typ entity na druhém konci relace.
Parametry
- navigationPropertyExpression
- Expression<Func<TStructuralType,TTargetEntity>>
Výraz lambda představující vlastnost navigace pro relaci.
Například v jazyce C# t => t.Customer
a v jazyce Visual Basic .NET Function(t) t.Customer
.
- referentialConstraintExpression
- Expression<Func<TStructuralType,TTargetEntity,Boolean>>
Výraz lambda představující referenční omezení. Například v jazyce C# (o, c) => o.CustomerId == c.Id
a v jazyce Visual Basic .NET Function(o, c) c.CustomerId == c.Id
.
- partnerExpression
- Expression<Func<TTargetEntity,IEnumerable<TStructuralType>>>
Výraz partnera pro tento vztah.
Návraty
Objekt konfigurace, který lze použít k další konfiguraci relace.
Platí pro
HasRequired<TTargetEntity>(Expression<Func<TStructuralType,TTargetEntity>>)
Nakonfiguruje požadovanou relaci z tohoto typu struktury.
public Microsoft.AspNet.OData.Builder.NavigationPropertyConfiguration HasRequired<TTargetEntity> (System.Linq.Expressions.Expression<Func<TStructuralType,TTargetEntity>> navigationPropertyExpression) where TTargetEntity : class;
member this.HasRequired : System.Linq.Expressions.Expression<Func<'StructuralType, 'argetEntity>> -> Microsoft.AspNet.OData.Builder.NavigationPropertyConfiguration (requires 'argetEntity : null)
Public Function HasRequired(Of TTargetEntity As Class) (navigationPropertyExpression As Expression(Of Func(Of TStructuralType, TTargetEntity))) As NavigationPropertyConfiguration
Parametry typu
- TTargetEntity
Typ entity na druhém konci relace.
Parametry
- navigationPropertyExpression
- Expression<Func<TStructuralType,TTargetEntity>>
Výraz lambda představující vlastnost navigace pro relaci. Například v jazyce C# t => t.MyProperty
a v jazyce Visual Basic .NET Function(t) t.MyProperty
.
Návraty
Objekt konfigurace, který lze použít k další konfiguraci relace.
Platí pro
HasRequired<TTargetEntity>(Expression<Func<TStructuralType,TTargetEntity>>, Expression<Func<TStructuralType,TTargetEntity,Boolean>>)
Nakonfiguruje požadovanou relaci s referenčním omezením z tohoto typu struktury.
public Microsoft.AspNet.OData.Builder.NavigationPropertyConfiguration HasRequired<TTargetEntity> (System.Linq.Expressions.Expression<Func<TStructuralType,TTargetEntity>> navigationPropertyExpression, System.Linq.Expressions.Expression<Func<TStructuralType,TTargetEntity,bool>> referentialConstraintExpression) where TTargetEntity : class;
member this.HasRequired : System.Linq.Expressions.Expression<Func<'StructuralType, 'argetEntity>> * System.Linq.Expressions.Expression<Func<'StructuralType, 'argetEntity, bool>> -> Microsoft.AspNet.OData.Builder.NavigationPropertyConfiguration (requires 'argetEntity : null)
Public Function HasRequired(Of TTargetEntity As Class) (navigationPropertyExpression As Expression(Of Func(Of TStructuralType, TTargetEntity)), referentialConstraintExpression As Expression(Of Func(Of TStructuralType, TTargetEntity, Boolean))) As NavigationPropertyConfiguration
Parametry typu
- TTargetEntity
Typ entity na druhém konci relace.
Parametry
- navigationPropertyExpression
- Expression<Func<TStructuralType,TTargetEntity>>
Výraz lambda představující vlastnost navigace pro relaci.
Například v jazyce C# t => t.Customer
a v jazyce Visual Basic .NET Function(t) t.Customer
.
- referentialConstraintExpression
- Expression<Func<TStructuralType,TTargetEntity,Boolean>>
Výraz lambda představující referenční omezení. Například v jazyce C# (o, c) => o.CustomerId == c.Id
a v jazyce Visual Basic .NET Function(o, c) c.CustomerId == c.Id
.
Návraty
Objekt konfigurace, který lze použít k další konfiguraci relace.