AnnotationCodeGenerator.GenerateFluentApi 方法

定义

重载

GenerateFluentApi(ISkipNavigation, IAnnotation)

返回给定 annotation的 Fluent API 调用,如果 null 不存在任何 Fluent API 调用,则返回该调用。

GenerateFluentApi(ITrigger, IAnnotation)

返回给定 annotation的 Fluent API 调用,如果 null 不存在任何 Fluent API 调用,则返回该调用。

GenerateFluentApi(IEntityType, IAnnotation, String)
已过时.

null除非重写否则返回 。

GenerateFluentApi(IForeignKey, IAnnotation, String)
已过时.

null除非重写否则返回 。

GenerateFluentApi(IProperty, IAnnotation, String)
已过时.

null除非重写否则返回 。

GenerateFluentApi(IKey, IAnnotation, String)
已过时.

null除非重写否则返回 。

GenerateFluentApi(IModel, IAnnotation, String)
已过时.

null除非重写否则返回 。

GenerateFluentApi(ISequence, IAnnotation)

返回给定 annotation的 Fluent API 调用,如果 null 不存在任何 Fluent API 调用,则返回该调用。

GenerateFluentApi(IIndex, IAnnotation, String)
已过时.

null除非重写否则返回 。

GenerateFluentApi(IRelationalPropertyOverrides, IAnnotation)

返回给定 annotation的 Fluent API 调用,如果 null 不存在任何 Fluent API 调用,则返回该调用。

GenerateFluentApi(INavigation, IAnnotation)

返回给定 annotation的 Fluent API 调用,如果 null 不存在任何 Fluent API 调用,则返回该调用。

GenerateFluentApi(IComplexProperty, IAnnotation)

返回给定 annotation的 Fluent API 调用,如果 null 不存在任何 Fluent API 调用,则返回该调用。

GenerateFluentApi(IModel, IAnnotation)

返回给定 annotation的 Fluent API 调用,如果 null 不存在任何 Fluent API 调用,则返回该调用。

GenerateFluentApi(IKey, IAnnotation)

返回给定 annotation的 Fluent API 调用,如果 null 不存在任何 Fluent API 调用,则返回该调用。

GenerateFluentApi(IIndex, IAnnotation)

返回给定 annotation的 Fluent API 调用,如果 null 不存在任何 Fluent API 调用,则返回该调用。

GenerateFluentApi(IForeignKey, IAnnotation)

返回给定 annotation的 Fluent API 调用,如果 null 不存在任何 Fluent API 调用,则返回该调用。

GenerateFluentApi(IEntityTypeMappingFragment, IAnnotation)

返回给定 annotation的 Fluent API 调用,如果 null 不存在任何 Fluent API 调用,则返回该调用。

GenerateFluentApi(IEntityType, IAnnotation)

返回给定 annotation的 Fluent API 调用,如果 null 不存在任何 Fluent API 调用,则返回该调用。

GenerateFluentApi(IComplexType, IAnnotation)

返回给定 annotation的 Fluent API 调用,如果 null 不存在任何 Fluent API 调用,则返回该调用。

GenerateFluentApi(IProperty, IAnnotation)

返回给定 annotation的 Fluent API 调用,如果 null 不存在任何 Fluent API 调用,则返回该调用。

GenerateFluentApi(ICheckConstraint, IAnnotation)

返回给定 annotation的 Fluent API 调用,如果 null 不存在任何 Fluent API 调用,则返回该调用。

GenerateFluentApi(ISkipNavigation, IAnnotation)

返回给定 annotation的 Fluent API 调用,如果 null 不存在任何 Fluent API 调用,则返回该调用。

protected virtual Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.ISkipNavigation navigation, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
protected virtual Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment? GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.ISkipNavigation navigation, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.ISkipNavigation * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
override this.GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.ISkipNavigation * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
Protected Overridable Function GenerateFluentApi (navigation As ISkipNavigation, annotation As IAnnotation) As MethodCallCodeFragment

参数

返回

null.

注解

默认实现始终返回 null

适用于

GenerateFluentApi(ITrigger, IAnnotation)

返回给定 annotation的 Fluent API 调用,如果 null 不存在任何 Fluent API 调用,则返回该调用。

protected virtual Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment? GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.ITrigger trigger, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.ITrigger * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
override this.GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.ITrigger * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
Protected Overridable Function GenerateFluentApi (trigger As ITrigger, annotation As IAnnotation) As MethodCallCodeFragment

参数

trigger
ITrigger

ITrigger

返回

null.

注解

默认实现始终返回 null

适用于

GenerateFluentApi(IEntityType, IAnnotation, String)

注意

Use GenerateFluentApi(IProperty, IAnnotation) instead.

null除非重写否则返回 。

public virtual string GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation, string language);
[System.Obsolete("Use GenerateFluentApi(IProperty, IAnnotation) instead.")]
public virtual string GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation, string language);
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
override this.GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
[<System.Obsolete("Use GenerateFluentApi(IProperty, IAnnotation) instead.")>]
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
override this.GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
Public Overridable Function GenerateFluentApi (entityType As IEntityType, annotation As IAnnotation, language As String) As String

参数

language
String

要使用的编程语言。 例如,CSharp。

返回

Null.

实现

属性

适用于

GenerateFluentApi(IForeignKey, IAnnotation, String)

注意

Use GenerateFluentApi(IProperty, IAnnotation) instead.

null除非重写否则返回 。

public virtual string GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation, string language);
[System.Obsolete("Use GenerateFluentApi(IProperty, IAnnotation) instead.")]
public virtual string GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation, string language);
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
override this.GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
[<System.Obsolete("Use GenerateFluentApi(IProperty, IAnnotation) instead.")>]
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
override this.GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
Public Overridable Function GenerateFluentApi (foreignKey As IForeignKey, annotation As IAnnotation, language As String) As String

参数

language
String

要使用的编程语言。 例如,CSharp。

返回

Null.

实现

属性

适用于

GenerateFluentApi(IProperty, IAnnotation, String)

注意

Use GenerateFluentApi(IProperty, IAnnotation) instead.

null除非重写否则返回 。

public virtual string GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation, string language);
[System.Obsolete("Use GenerateFluentApi(IProperty, IAnnotation) instead.")]
public virtual string GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation, string language);
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
override this.GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
[<System.Obsolete("Use GenerateFluentApi(IProperty, IAnnotation) instead.")>]
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
override this.GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
Public Overridable Function GenerateFluentApi (property As IProperty, annotation As IAnnotation, language As String) As String

参数

property
IProperty

IProperty

language
String

要使用的编程语言。 例如,CSharp。

返回

Null.

实现

属性

适用于

GenerateFluentApi(IKey, IAnnotation, String)

注意

Use GenerateFluentApi(IProperty, IAnnotation) instead.

null除非重写否则返回 。

public virtual string GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IKey key, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation, string language);
[System.Obsolete("Use GenerateFluentApi(IProperty, IAnnotation) instead.")]
public virtual string GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IKey key, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation, string language);
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
override this.GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
[<System.Obsolete("Use GenerateFluentApi(IProperty, IAnnotation) instead.")>]
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
override this.GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
Public Overridable Function GenerateFluentApi (key As IKey, annotation As IAnnotation, language As String) As String

参数

key
IKey

IKey

language
String

要使用的编程语言。 例如,CSharp。

返回

Null.

实现

属性

适用于

GenerateFluentApi(IModel, IAnnotation, String)

注意

Use GenerateFluentApi(IProperty, IAnnotation) instead.

null除非重写否则返回 。

public virtual string GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation, string language);
[System.Obsolete("Use GenerateFluentApi(IProperty, IAnnotation) instead.")]
public virtual string GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation, string language);
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
override this.GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
[<System.Obsolete("Use GenerateFluentApi(IProperty, IAnnotation) instead.")>]
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
override this.GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
Public Overridable Function GenerateFluentApi (model As IModel, annotation As IAnnotation, language As String) As String

参数

model
IModel

IModel

language
String

要使用的编程语言。 例如,CSharp。

返回

Null.

实现

属性

适用于

GenerateFluentApi(ISequence, IAnnotation)

返回给定 annotation的 Fluent API 调用,如果 null 不存在任何 Fluent API 调用,则返回该调用。

protected virtual Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment? GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.ISequence sequence, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.ISequence * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
override this.GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.ISequence * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
Protected Overridable Function GenerateFluentApi (sequence As ISequence, annotation As IAnnotation) As MethodCallCodeFragment

参数

sequence
ISequence

ISequence

返回

null.

注解

默认实现始终返回 null

适用于

GenerateFluentApi(IIndex, IAnnotation, String)

注意

Use GenerateFluentApi(IProperty, IAnnotation) instead.

null除非重写否则返回 。

public virtual string GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IIndex index, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation, string language);
[System.Obsolete("Use GenerateFluentApi(IProperty, IAnnotation) instead.")]
public virtual string GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IIndex index, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation, string language);
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IIndex * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
override this.GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IIndex * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
[<System.Obsolete("Use GenerateFluentApi(IProperty, IAnnotation) instead.")>]
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IIndex * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
override this.GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IIndex * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
Public Overridable Function GenerateFluentApi (index As IIndex, annotation As IAnnotation, language As String) As String

参数

index
IIndex

IIndex

language
String

要使用的编程语言。 例如,CSharp。

返回

Null.

实现

属性

适用于

GenerateFluentApi(IRelationalPropertyOverrides, IAnnotation)

返回给定 annotation的 Fluent API 调用,如果 null 不存在任何 Fluent API 调用,则返回该调用。

protected virtual Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment? GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IRelationalPropertyOverrides overrides, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IRelationalPropertyOverrides * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
override this.GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IRelationalPropertyOverrides * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
Protected Overridable Function GenerateFluentApi (overrides As IRelationalPropertyOverrides, annotation As IAnnotation) As MethodCallCodeFragment

参数

返回

null.

注解

默认实现始终返回 null

适用于

GenerateFluentApi(INavigation, IAnnotation)

返回给定 annotation的 Fluent API 调用,如果 null 不存在任何 Fluent API 调用,则返回该调用。

protected virtual Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.INavigation navigation, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
protected virtual Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment? GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.INavigation navigation, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.INavigation * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
override this.GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.INavigation * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
Protected Overridable Function GenerateFluentApi (navigation As INavigation, annotation As IAnnotation) As MethodCallCodeFragment

参数

返回

null.

注解

默认实现始终返回 null

适用于

GenerateFluentApi(IComplexProperty, IAnnotation)

返回给定 annotation的 Fluent API 调用,如果 null 不存在任何 Fluent API 调用,则返回该调用。

protected virtual Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment? GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IComplexProperty complexProperty, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IComplexProperty * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
override this.GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IComplexProperty * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
Protected Overridable Function GenerateFluentApi (complexProperty As IComplexProperty, annotation As IAnnotation) As MethodCallCodeFragment

参数

complexProperty
IComplexProperty

IProperty

返回

null.

注解

默认实现始终返回 null

适用于

GenerateFluentApi(IModel, IAnnotation)

返回给定 annotation的 Fluent API 调用,如果 null 不存在任何 Fluent API 调用,则返回该调用。

public virtual Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
protected virtual Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
protected virtual Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment? GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
override this.GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
Public Overridable Function GenerateFluentApi (model As IModel, annotation As IAnnotation) As MethodCallCodeFragment
Protected Overridable Function GenerateFluentApi (model As IModel, annotation As IAnnotation) As MethodCallCodeFragment

参数

model
IModel

IModel

返回

null.

实现

注解

默认实现始终返回 null

适用于

GenerateFluentApi(IKey, IAnnotation)

返回给定 annotation的 Fluent API 调用,如果 null 不存在任何 Fluent API 调用,则返回该调用。

public virtual Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IKey key, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
protected virtual Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IKey key, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
protected virtual Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment? GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IKey key, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
override this.GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
Public Overridable Function GenerateFluentApi (key As IKey, annotation As IAnnotation) As MethodCallCodeFragment
Protected Overridable Function GenerateFluentApi (key As IKey, annotation As IAnnotation) As MethodCallCodeFragment

参数

key
IKey

IKey

返回

null.

实现

注解

默认实现始终返回 null

适用于

GenerateFluentApi(IIndex, IAnnotation)

返回给定 annotation的 Fluent API 调用,如果 null 不存在任何 Fluent API 调用,则返回该调用。

public virtual Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IIndex index, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
protected virtual Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IIndex index, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
protected virtual Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment? GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IIndex index, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IIndex * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
override this.GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IIndex * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
Public Overridable Function GenerateFluentApi (index As IIndex, annotation As IAnnotation) As MethodCallCodeFragment
Protected Overridable Function GenerateFluentApi (index As IIndex, annotation As IAnnotation) As MethodCallCodeFragment

参数

index
IIndex

IIndex

返回

null.

实现

注解

默认实现始终返回 null

适用于

GenerateFluentApi(IForeignKey, IAnnotation)

返回给定 annotation的 Fluent API 调用,如果 null 不存在任何 Fluent API 调用,则返回该调用。

public virtual Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
protected virtual Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
protected virtual Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment? GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
override this.GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
Public Overridable Function GenerateFluentApi (foreignKey As IForeignKey, annotation As IAnnotation) As MethodCallCodeFragment
Protected Overridable Function GenerateFluentApi (foreignKey As IForeignKey, annotation As IAnnotation) As MethodCallCodeFragment

参数

返回

null.

实现

注解

默认实现始终返回 null

适用于

GenerateFluentApi(IEntityTypeMappingFragment, IAnnotation)

返回给定 annotation的 Fluent API 调用,如果 null 不存在任何 Fluent API 调用,则返回该调用。

protected virtual Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment? GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IEntityTypeMappingFragment fragment, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IEntityTypeMappingFragment * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
override this.GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IEntityTypeMappingFragment * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
Protected Overridable Function GenerateFluentApi (fragment As IEntityTypeMappingFragment, annotation As IAnnotation) As MethodCallCodeFragment

参数

返回

null.

注解

默认实现始终返回 null

适用于

GenerateFluentApi(IEntityType, IAnnotation)

返回给定 annotation的 Fluent API 调用,如果 null 不存在任何 Fluent API 调用,则返回该调用。

public virtual Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
protected virtual Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
protected virtual Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment? GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
override this.GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
Public Overridable Function GenerateFluentApi (entityType As IEntityType, annotation As IAnnotation) As MethodCallCodeFragment
Protected Overridable Function GenerateFluentApi (entityType As IEntityType, annotation As IAnnotation) As MethodCallCodeFragment

参数

返回

null.

实现

注解

默认实现始终返回 null

适用于

GenerateFluentApi(IComplexType, IAnnotation)

返回给定 annotation的 Fluent API 调用,如果 null 不存在任何 Fluent API 调用,则返回该调用。

protected virtual Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment? GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IComplexType complexType, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IComplexType * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
override this.GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IComplexType * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
Protected Overridable Function GenerateFluentApi (complexType As IComplexType, annotation As IAnnotation) As MethodCallCodeFragment

参数

返回

null.

注解

默认实现始终返回 null

适用于

GenerateFluentApi(IProperty, IAnnotation)

返回给定 annotation的 Fluent API 调用,如果 null 不存在任何 Fluent API 调用,则返回该调用。

public virtual Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
protected virtual Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
protected virtual Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment? GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
override this.GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
Public Overridable Function GenerateFluentApi (property As IProperty, annotation As IAnnotation) As MethodCallCodeFragment
Protected Overridable Function GenerateFluentApi (property As IProperty, annotation As IAnnotation) As MethodCallCodeFragment

参数

property
IProperty

IProperty

返回

null.

实现

注解

默认实现始终返回 null

适用于

GenerateFluentApi(ICheckConstraint, IAnnotation)

返回给定 annotation的 Fluent API 调用,如果 null 不存在任何 Fluent API 调用,则返回该调用。

protected virtual Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment? GenerateFluentApi (Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint checkConstraint, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
override this.GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
Protected Overridable Function GenerateFluentApi (checkConstraint As ICheckConstraint, annotation As IAnnotation) As MethodCallCodeFragment

参数

返回

null.

注解

默认实现始终返回 null

适用于