AnnotationCodeGenerator.GenerateFluentApiCalls 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
GenerateFluentApiCalls(IRelationalPropertyOverrides, IDictionary<String,IAnnotation>)
針對具有對應 Fluent API 呼叫的指定批註,傳回這些 Fluent API 呼叫,並移除批註。
public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment> GenerateFluentApiCalls (Microsoft.EntityFrameworkCore.Metadata.IRelationalPropertyOverrides overrides, System.Collections.Generic.IDictionary<string,Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations);
abstract member GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IRelationalPropertyOverrides * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
override this.GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IRelationalPropertyOverrides * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
Public Overridable Function GenerateFluentApiCalls (overrides As IRelationalPropertyOverrides, annotations As IDictionary(Of String, IAnnotation)) As IReadOnlyList(Of MethodCallCodeFragment)
參數
- overrides
- IRelationalPropertyOverrides
屬性會覆寫套用批註的 。
- annotations
- IDictionary<String,IAnnotation>
要從中產生 Fluent API 呼叫的批註集。
傳回
實作
適用於
GenerateFluentApiCalls(ISequence, IDictionary<String,IAnnotation>)
針對具有對應 Fluent API 呼叫的指定批註,傳回這些 Fluent API 呼叫,並移除批註。
public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment> GenerateFluentApiCalls (Microsoft.EntityFrameworkCore.Metadata.ISequence sequence, System.Collections.Generic.IDictionary<string,Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations);
abstract member GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.ISequence * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
override this.GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.ISequence * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
Public Overridable Function GenerateFluentApiCalls (sequence As ISequence, annotations As IDictionary(Of String, IAnnotation)) As IReadOnlyList(Of MethodCallCodeFragment)
參數
- sequence
- ISequence
套用批註的順序。
- annotations
- IDictionary<String,IAnnotation>
要從中產生 Fluent API 呼叫的批註集。
傳回
實作
適用於
GenerateFluentApiCalls(IProperty, IDictionary<String,IAnnotation>)
針對具有對應 Fluent API 呼叫的指定批註,傳回這些 Fluent API 呼叫,並移除批註。
public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment> GenerateFluentApiCalls (Microsoft.EntityFrameworkCore.Metadata.IProperty property, System.Collections.Generic.IDictionary<string,Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations);
abstract member GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IProperty * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
override this.GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IProperty * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
Public Overridable Function GenerateFluentApiCalls (property As IProperty, annotations As IDictionary(Of String, IAnnotation)) As IReadOnlyList(Of MethodCallCodeFragment)
參數
- property
- IProperty
套用批註的屬性。
- annotations
- IDictionary<String,IAnnotation>
要從中產生 Fluent API 呼叫的批註集。
傳回
實作
適用於
GenerateFluentApiCalls(ITrigger, IDictionary<String,IAnnotation>)
針對具有對應 Fluent API 呼叫的指定批註,傳回這些 Fluent API 呼叫,並移除批註。
public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment> GenerateFluentApiCalls (Microsoft.EntityFrameworkCore.Metadata.ITrigger trigger, System.Collections.Generic.IDictionary<string,Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations);
abstract member GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.ITrigger * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
override this.GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.ITrigger * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
Public Overridable Function GenerateFluentApiCalls (trigger As ITrigger, annotations As IDictionary(Of String, IAnnotation)) As IReadOnlyList(Of MethodCallCodeFragment)
參數
- trigger
- ITrigger
套用批註的觸發程式。
- annotations
- IDictionary<String,IAnnotation>
要從中產生 Fluent API 呼叫的批註集。
傳回
實作
適用於
GenerateFluentApiCalls(IForeignKey, IDictionary<String,IAnnotation>)
針對具有對應 Fluent API 呼叫的指定批註,傳回這些 Fluent API 呼叫,並移除批註。
public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment> GenerateFluentApiCalls (Microsoft.EntityFrameworkCore.Metadata.IForeignKey navigation, System.Collections.Generic.IDictionary<string,Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations);
public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment> GenerateFluentApiCalls (Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, System.Collections.Generic.IDictionary<string,Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations);
abstract member GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
override this.GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
abstract member GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
override this.GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
Public Overridable Function GenerateFluentApiCalls (navigation As IForeignKey, annotations As IDictionary(Of String, IAnnotation)) As IReadOnlyList(Of MethodCallCodeFragment)
Public Overridable Function GenerateFluentApiCalls (foreignKey As IForeignKey, annotations As IDictionary(Of String, IAnnotation)) As IReadOnlyList(Of MethodCallCodeFragment)
參數
- navigationforeignKey
- IForeignKey
- annotations
- IDictionary<String,IAnnotation>
要從中產生 Fluent API 呼叫的批註集。
傳回
實作
適用於
GenerateFluentApiCalls(ISkipNavigation, IDictionary<String,IAnnotation>)
針對具有對應 Fluent API 呼叫的指定批註,傳回這些 Fluent API 呼叫,並移除批註。
public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment> GenerateFluentApiCalls (Microsoft.EntityFrameworkCore.Metadata.ISkipNavigation navigation, System.Collections.Generic.IDictionary<string,Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations);
abstract member GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.ISkipNavigation * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
override this.GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.ISkipNavigation * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
Public Overridable Function GenerateFluentApiCalls (navigation As ISkipNavigation, annotations As IDictionary(Of String, IAnnotation)) As IReadOnlyList(Of MethodCallCodeFragment)
參數
- navigation
- ISkipNavigation
套用批註的略過流覽。
- annotations
- IDictionary<String,IAnnotation>
要從中產生 Fluent API 呼叫的批註集。
傳回
實作
適用於
GenerateFluentApiCalls(INavigation, IDictionary<String,IAnnotation>)
針對具有對應 Fluent API 呼叫的指定批註,傳回這些 Fluent API 呼叫,並移除批註。
public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment> GenerateFluentApiCalls (Microsoft.EntityFrameworkCore.Metadata.INavigation navigation, System.Collections.Generic.IDictionary<string,Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations);
abstract member GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.INavigation * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
override this.GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.INavigation * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
Public Overridable Function GenerateFluentApiCalls (navigation As INavigation, annotations As IDictionary(Of String, IAnnotation)) As IReadOnlyList(Of MethodCallCodeFragment)
參數
- navigation
- INavigation
套用批註的導覽。
- annotations
- IDictionary<String,IAnnotation>
要從中產生 Fluent API 呼叫的批註集。
傳回
實作
適用於
GenerateFluentApiCalls(IModel, IDictionary<String,IAnnotation>)
針對具有對應 Fluent API 呼叫的指定批註,傳回這些 Fluent API 呼叫,並移除批註。
public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment> GenerateFluentApiCalls (Microsoft.EntityFrameworkCore.Metadata.IModel model, System.Collections.Generic.IDictionary<string,Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations);
abstract member GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IModel * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
override this.GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IModel * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
Public Overridable Function GenerateFluentApiCalls (model As IModel, annotations As IDictionary(Of String, IAnnotation)) As IReadOnlyList(Of MethodCallCodeFragment)
參數
- model
- IModel
套用批註的模型。
- annotations
- IDictionary<String,IAnnotation>
要從中產生 Fluent API 呼叫的批註集。
傳回
實作
適用於
GenerateFluentApiCalls(IIndex, IDictionary<String,IAnnotation>)
針對具有對應 Fluent API 呼叫的指定批註,傳回這些 Fluent API 呼叫,並移除批註。
public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment> GenerateFluentApiCalls (Microsoft.EntityFrameworkCore.Metadata.IIndex index, System.Collections.Generic.IDictionary<string,Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations);
abstract member GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IIndex * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
override this.GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IIndex * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
Public Overridable Function GenerateFluentApiCalls (index As IIndex, annotations As IDictionary(Of String, IAnnotation)) As IReadOnlyList(Of MethodCallCodeFragment)
參數
- index
- IIndex
套用批註的索引。
- annotations
- IDictionary<String,IAnnotation>
要從中產生 Fluent API 呼叫的批註集。
傳回
實作
適用於
GenerateFluentApiCalls(IEntityTypeMappingFragment, IDictionary<String,IAnnotation>)
針對具有對應 Fluent API 呼叫的指定批註,傳回這些 Fluent API 呼叫,並移除批註。
public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment> GenerateFluentApiCalls (Microsoft.EntityFrameworkCore.Metadata.IEntityTypeMappingFragment fragment, System.Collections.Generic.IDictionary<string,Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations);
abstract member GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IEntityTypeMappingFragment * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
override this.GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IEntityTypeMappingFragment * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
Public Overridable Function GenerateFluentApiCalls (fragment As IEntityTypeMappingFragment, annotations As IDictionary(Of String, IAnnotation)) As IReadOnlyList(Of MethodCallCodeFragment)
參數
- fragment
- IEntityTypeMappingFragment
套用批註的實體對應片段。
- annotations
- IDictionary<String,IAnnotation>
要從中產生 Fluent API 呼叫的批註集。
傳回
實作
適用於
GenerateFluentApiCalls(IEntityType, IDictionary<String,IAnnotation>)
針對具有對應 Fluent API 呼叫的指定批註,傳回這些 Fluent API 呼叫,並移除批註。
public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment> GenerateFluentApiCalls (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, System.Collections.Generic.IDictionary<string,Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations);
abstract member GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IEntityType * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
override this.GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IEntityType * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
Public Overridable Function GenerateFluentApiCalls (entityType As IEntityType, annotations As IDictionary(Of String, IAnnotation)) As IReadOnlyList(Of MethodCallCodeFragment)
參數
- entityType
- IEntityType
套用批註的實體類型。
- annotations
- IDictionary<String,IAnnotation>
要從中產生 Fluent API 呼叫的批註集。
傳回
實作
適用於
GenerateFluentApiCalls(IComplexType, IDictionary<String,IAnnotation>)
針對具有對應 Fluent API 呼叫的指定批註,傳回這些 Fluent API 呼叫,並移除批註。
public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment> GenerateFluentApiCalls (Microsoft.EntityFrameworkCore.Metadata.IComplexType complexType, System.Collections.Generic.IDictionary<string,Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations);
abstract member GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IComplexType * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
override this.GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IComplexType * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
Public Overridable Function GenerateFluentApiCalls (complexType As IComplexType, annotations As IDictionary(Of String, IAnnotation)) As IReadOnlyList(Of MethodCallCodeFragment)
參數
- complexType
- IComplexType
套用批註的實體類型。
- annotations
- IDictionary<String,IAnnotation>
要從中產生 Fluent API 呼叫的批註集。
傳回
實作
適用於
GenerateFluentApiCalls(IComplexProperty, IDictionary<String,IAnnotation>)
針對具有對應 Fluent API 呼叫的指定批註,傳回這些 Fluent API 呼叫,並移除批註。
public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment> GenerateFluentApiCalls (Microsoft.EntityFrameworkCore.Metadata.IComplexProperty complexProperty, System.Collections.Generic.IDictionary<string,Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations);
abstract member GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IComplexProperty * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
override this.GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IComplexProperty * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
Public Overridable Function GenerateFluentApiCalls (complexProperty As IComplexProperty, annotations As IDictionary(Of String, IAnnotation)) As IReadOnlyList(Of MethodCallCodeFragment)
參數
- complexProperty
- IComplexProperty
套用批註的複雜屬性。
- annotations
- IDictionary<String,IAnnotation>
要從中產生 Fluent API 呼叫的批註集。
傳回
實作
適用於
GenerateFluentApiCalls(ICheckConstraint, IDictionary<String,IAnnotation>)
針對具有對應 Fluent API 呼叫的指定批註,傳回這些 Fluent API 呼叫,並移除批註。
public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment> GenerateFluentApiCalls (Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint checkConstraint, System.Collections.Generic.IDictionary<string,Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations);
abstract member GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
override this.GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
Public Overridable Function GenerateFluentApiCalls (checkConstraint As ICheckConstraint, annotations As IDictionary(Of String, IAnnotation)) As IReadOnlyList(Of MethodCallCodeFragment)
參數
- checkConstraint
- ICheckConstraint
套用批註的檢查條件約束。
- annotations
- IDictionary<String,IAnnotation>
要從中產生 Fluent API 呼叫的批註集。
傳回
實作
適用於
GenerateFluentApiCalls(IAnnotatable, IDictionary<String,IAnnotation>)
針對具有對應 Fluent API 呼叫的指定批註,傳回這些 Fluent API 呼叫,並移除批註。
public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment> GenerateFluentApiCalls (Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable annotatable, System.Collections.Generic.IDictionary<string,Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations);
abstract member GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
override this.GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
Public Overridable Function GenerateFluentApiCalls (annotatable As IAnnotatable, annotations As IDictionary(Of String, IAnnotation)) As IReadOnlyList(Of MethodCallCodeFragment)
參數
- annotatable
- IAnnotatable
套用批註的不指定值。
- annotations
- IDictionary<String,IAnnotation>
要從中產生 Fluent API 呼叫的批註集。
傳回
實作
適用於
GenerateFluentApiCalls(IKey, IDictionary<String,IAnnotation>)
針對具有對應 Fluent API 呼叫的指定批註,傳回這些 Fluent API 呼叫,並移除批註。
public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment> GenerateFluentApiCalls (Microsoft.EntityFrameworkCore.Metadata.IKey key, System.Collections.Generic.IDictionary<string,Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations);
abstract member GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IKey * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
override this.GenerateFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IKey * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment>
Public Overridable Function GenerateFluentApiCalls (key As IKey, annotations As IDictionary(Of String, IAnnotation)) As IReadOnlyList(Of MethodCallCodeFragment)
參數
- key
- IKey
套用批註的索引鍵。
- annotations
- IDictionary<String,IAnnotation>
要從中產生 Fluent API 呼叫的批註集。