SqlServerAnnotationProvider.For 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
For(IEntityType) | |
For(IForeignKey) | |
For(IIndex) | |
For(IKey) | |
For(IModel) | |
For(IProperty) |
For(IEntityType)
public virtual Microsoft.EntityFrameworkCore.Metadata.IRelationalEntityTypeAnnotations For (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IRelationalEntityTypeAnnotations
override this.For : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IRelationalEntityTypeAnnotations
Public Overridable Function For (entityType As IEntityType) As IRelationalEntityTypeAnnotations
参数
- entityType
- IEntityType
返回
实现
适用于
For(IForeignKey)
public virtual Microsoft.EntityFrameworkCore.Metadata.IRelationalForeignKeyAnnotations For (Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IForeignKey -> Microsoft.EntityFrameworkCore.Metadata.IRelationalForeignKeyAnnotations
override this.For : Microsoft.EntityFrameworkCore.Metadata.IForeignKey -> Microsoft.EntityFrameworkCore.Metadata.IRelationalForeignKeyAnnotations
Public Overridable Function For (foreignKey As IForeignKey) As IRelationalForeignKeyAnnotations
参数
- foreignKey
- IForeignKey
返回
实现
适用于
For(IIndex)
public virtual Microsoft.EntityFrameworkCore.Metadata.IRelationalIndexAnnotations For (Microsoft.EntityFrameworkCore.Metadata.IIndex index);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IIndex -> Microsoft.EntityFrameworkCore.Metadata.IRelationalIndexAnnotations
override this.For : Microsoft.EntityFrameworkCore.Metadata.IIndex -> Microsoft.EntityFrameworkCore.Metadata.IRelationalIndexAnnotations
Public Overridable Function For (index As IIndex) As IRelationalIndexAnnotations
参数
- index
- IIndex
返回
实现
适用于
For(IKey)
public virtual Microsoft.EntityFrameworkCore.Metadata.IRelationalKeyAnnotations For (Microsoft.EntityFrameworkCore.Metadata.IKey key);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IKey -> Microsoft.EntityFrameworkCore.Metadata.IRelationalKeyAnnotations
override this.For : Microsoft.EntityFrameworkCore.Metadata.IKey -> Microsoft.EntityFrameworkCore.Metadata.IRelationalKeyAnnotations
Public Overridable Function For (key As IKey) As IRelationalKeyAnnotations
参数
- key
- IKey
返回
实现
适用于
For(IModel)
public virtual Microsoft.EntityFrameworkCore.Metadata.IRelationalModelAnnotations For (Microsoft.EntityFrameworkCore.Metadata.IModel model);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IModel -> Microsoft.EntityFrameworkCore.Metadata.IRelationalModelAnnotations
override this.For : Microsoft.EntityFrameworkCore.Metadata.IModel -> Microsoft.EntityFrameworkCore.Metadata.IRelationalModelAnnotations
Public Overridable Function For (model As IModel) As IRelationalModelAnnotations
参数
- model
- IModel
返回
实现
适用于
For(IProperty)
public virtual Microsoft.EntityFrameworkCore.Metadata.IRelationalPropertyAnnotations For (Microsoft.EntityFrameworkCore.Metadata.IProperty property);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Metadata.IRelationalPropertyAnnotations
override this.For : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Metadata.IRelationalPropertyAnnotations
Public Overridable Function For (property As IProperty) As IRelationalPropertyAnnotations
参数
- property
- IProperty