IMutableEntityType.AddSkipNavigation 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AddSkipNavigation(String, MemberInfo, IMutableEntityType, Boolean, Boolean) |
將新的略過導覽屬性新增至這個實體類型。 |
AddSkipNavigation(String, Type, MemberInfo, IMutableEntityType, Boolean, Boolean) |
將新的略過導覽屬性新增至這個實體類型。 |
AddSkipNavigation(String, MemberInfo, IMutableEntityType, Boolean, Boolean)
將新的略過導覽屬性新增至這個實體類型。
public Microsoft.EntityFrameworkCore.Metadata.IMutableSkipNavigation AddSkipNavigation (string name, System.Reflection.MemberInfo memberInfo, Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType targetEntityType, bool collection, bool onDependent);
public Microsoft.EntityFrameworkCore.Metadata.IMutableSkipNavigation AddSkipNavigation (string name, System.Reflection.MemberInfo? memberInfo, Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType targetEntityType, bool collection, bool onDependent);
public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableSkipNavigation AddSkipNavigation (string name, System.Reflection.MemberInfo? memberInfo, Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType targetEntityType, bool collection, bool onDependent);
abstract member AddSkipNavigation : string * System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IMutableSkipNavigation
abstract member AddSkipNavigation : string * System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IMutableSkipNavigation
override this.AddSkipNavigation : string * System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IMutableSkipNavigation
Public Function AddSkipNavigation (name As String, memberInfo As MemberInfo, targetEntityType As IMutableEntityType, collection As Boolean, onDependent As Boolean) As IMutableSkipNavigation
Public Overridable Function AddSkipNavigation (name As String, memberInfo As MemberInfo, targetEntityType As IMutableEntityType, collection As Boolean, onDependent As Boolean) As IMutableSkipNavigation
參數
- name
- String
要加入的略過導覽屬性名稱。
- targetEntityType
- IMutableEntityType
略過導覽屬性將保存實例的實體類型, (的實例) 。
- collection
- Boolean
導覽屬性是否為集合屬性。
- onDependent
- Boolean
巡覽屬性是否定義于基礎外鍵的相依端。
傳回
新建立的略過導覽屬性。
適用於
AddSkipNavigation(String, Type, MemberInfo, IMutableEntityType, Boolean, Boolean)
將新的略過導覽屬性新增至這個實體類型。
public Microsoft.EntityFrameworkCore.Metadata.IMutableSkipNavigation AddSkipNavigation (string name, Type? navigationType, System.Reflection.MemberInfo? memberInfo, Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType targetEntityType, bool collection, bool onDependent);
abstract member AddSkipNavigation : string * Type * System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IMutableSkipNavigation
Public Function AddSkipNavigation (name As String, navigationType As Type, memberInfo As MemberInfo, targetEntityType As IMutableEntityType, collection As Boolean, onDependent As Boolean) As IMutableSkipNavigation
參數
- name
- String
要加入的略過導覽屬性名稱。
- navigationType
- Type
流覽類型。
- targetEntityType
- IMutableEntityType
略過導覽屬性將保存實例的實體類型, (的實例) 。
- collection
- Boolean
導覽屬性是否為集合屬性。
- onDependent
- Boolean
巡覽屬性是否定義于基礎外鍵的相依端。
傳回
新建立的略過導覽屬性。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應