OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>.Navigation 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Navigation<TNavigation>(Expression<Func<TDependentEntity,IEnumerable<TNavigation>>>) |
傳回物件,這個物件可用來將現有導覽屬性從擁有的類型設定為其擁有者。 巡覽屬性不存在時發生錯誤。 |
Navigation<TNavigation>(Expression<Func<TDependentEntity,TNavigation>>) |
傳回物件,這個物件可用來將現有導覽屬性從擁有的類型設定為其擁有者。 巡覽屬性不存在時發生錯誤。 |
Navigation<TNavigation>(Expression<Func<TDependentEntity,IEnumerable<TNavigation>>>)
傳回物件,這個物件可用來將現有導覽屬性從擁有的類型設定為其擁有者。 巡覽屬性不存在時發生錯誤。
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.NavigationBuilder<TDependentEntity,TNavigation> Navigation<TNavigation> (System.Linq.Expressions.Expression<Func<TDependentEntity,System.Collections.Generic.IEnumerable<TNavigation>>> navigationExpression) where TNavigation : class;
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.NavigationBuilder<TDependentEntity,TNavigation> Navigation<TNavigation> (System.Linq.Expressions.Expression<Func<TDependentEntity,System.Collections.Generic.IEnumerable<TNavigation>?>> navigationExpression) where TNavigation : class;
override this.Navigation : System.Linq.Expressions.Expression<Func<'DependentEntity, seq<'Navigation>>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.NavigationBuilder<'DependentEntity, 'Navigation (requires 'DependentEntity : null and 'Navigation : null)> (requires 'Navigation : null)
Public Overridable Function Navigation(Of TNavigation As Class) (navigationExpression As Expression(Of Func(Of TDependentEntity, IEnumerable(Of TNavigation)))) As NavigationBuilder(Of TDependentEntity, TNavigation)
類型參數
- TNavigation
目標實體類型。
參數
- navigationExpression
- Expression<Func<TDependentEntity,IEnumerable<TNavigation>>>
Lambda 運算式,表示要設定的導覽屬性 ( blog => blog.Posts
) 。
傳回
NavigationBuilder<TDependentEntity,TNavigation>
物件,可用來設定導覽屬性。
適用於
Navigation<TNavigation>(Expression<Func<TDependentEntity,TNavigation>>)
傳回物件,這個物件可用來將現有導覽屬性從擁有的類型設定為其擁有者。 巡覽屬性不存在時發生錯誤。
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.NavigationBuilder<TDependentEntity,TNavigation> Navigation<TNavigation> (System.Linq.Expressions.Expression<Func<TDependentEntity,TNavigation>> navigationExpression) where TNavigation : class;
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.NavigationBuilder<TDependentEntity,TNavigation> Navigation<TNavigation> (System.Linq.Expressions.Expression<Func<TDependentEntity,TNavigation?>> navigationExpression) where TNavigation : class;
override this.Navigation : System.Linq.Expressions.Expression<Func<'DependentEntity, 'Navigation>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.NavigationBuilder<'DependentEntity, 'Navigation (requires 'DependentEntity : null and 'Navigation : null)> (requires 'Navigation : null)
Public Overridable Function Navigation(Of TNavigation As Class) (navigationExpression As Expression(Of Func(Of TDependentEntity, TNavigation))) As NavigationBuilder(Of TDependentEntity, TNavigation)
類型參數
- TNavigation
目標實體類型。
參數
- navigationExpression
- Expression<Func<TDependentEntity,TNavigation>>
Lambda 運算式,表示要設定的導覽屬性 ( blog => blog.Posts
) 。
傳回
NavigationBuilder<TDependentEntity,TNavigation>
物件,可用來設定導覽屬性。