RelationalAnnotationProvider.For 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
For(IRelationalModel, Boolean)
获取给定 IRelationalModel的特定于提供程序的注释。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> For(Microsoft.EntityFrameworkCore.Metadata.IRelationalModel model, bool designTime);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IRelationalModel * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.For : Microsoft.EntityFrameworkCore.Metadata.IRelationalModel * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function For (model As IRelationalModel, designTime As Boolean) As IEnumerable(Of IAnnotation)
参数
- model
- IRelationalModel
数据库模型。
- designTime
- Boolean
模型是否应包含设计时配置。
返回
批注。
实现
适用于
For(ISequence, Boolean)
获取给定 ISequence的特定于提供程序的注释。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> For(Microsoft.EntityFrameworkCore.Metadata.ISequence sequence, bool designTime);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.ISequence * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.For : Microsoft.EntityFrameworkCore.Metadata.ISequence * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function For (sequence As ISequence, designTime As Boolean) As IEnumerable(Of IAnnotation)
参数
- sequence
- ISequence
序列。
- designTime
- Boolean
模型是否应包含设计时配置。
返回
批注。
实现
适用于
For(ISqlQuery, Boolean)
获取给定 ISqlQuery的特定于提供程序的注释。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> For(Microsoft.EntityFrameworkCore.Metadata.ISqlQuery sqlQuery, bool designTime);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.ISqlQuery * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.For : Microsoft.EntityFrameworkCore.Metadata.ISqlQuery * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function For (sqlQuery As ISqlQuery, designTime As Boolean) As IEnumerable(Of IAnnotation)
参数
- sqlQuery
- ISqlQuery
SQL 查询。
- designTime
- Boolean
模型是否应包含设计时配置。
返回
批注。
实现
适用于
For(ISqlQueryColumn, Boolean)
获取给定 ISqlQueryColumn的特定于提供程序的注释。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> For(Microsoft.EntityFrameworkCore.Metadata.ISqlQueryColumn column, bool designTime);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.ISqlQueryColumn * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.For : Microsoft.EntityFrameworkCore.Metadata.ISqlQueryColumn * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function For (column As ISqlQueryColumn, designTime As Boolean) As IEnumerable(Of IAnnotation)
参数
- column
- ISqlQueryColumn
列。
- designTime
- Boolean
模型是否应包含设计时配置。
返回
批注。
实现
适用于
For(IStoreFunction, Boolean)
获取给定 IStoreFunction的特定于提供程序的注释。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> For(Microsoft.EntityFrameworkCore.Metadata.IStoreFunction function, bool designTime);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IStoreFunction * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.For : Microsoft.EntityFrameworkCore.Metadata.IStoreFunction * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function For (function As IStoreFunction, designTime As Boolean) As IEnumerable(Of IAnnotation)
参数
- function
- IStoreFunction
函数。
- designTime
- Boolean
模型是否应包含设计时配置。
返回
批注。
实现
适用于
For(IStoreFunctionParameter, Boolean)
获取给定 IStoreFunctionParameter的特定于提供程序的注释。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> For(Microsoft.EntityFrameworkCore.Metadata.IStoreFunctionParameter parameter, bool designTime);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IStoreFunctionParameter * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.For : Microsoft.EntityFrameworkCore.Metadata.IStoreFunctionParameter * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function For (parameter As IStoreFunctionParameter, designTime As Boolean) As IEnumerable(Of IAnnotation)
参数
- parameter
- IStoreFunctionParameter
参数。
- designTime
- Boolean
模型是否应包含设计时配置。
返回
批注。
实现
适用于
For(IStoreStoredProcedure, Boolean)
获取给定 IStoreStoredProcedure的特定于提供程序的注释。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> For(Microsoft.EntityFrameworkCore.Metadata.IStoreStoredProcedure storedProcedure, bool designTime);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IStoreStoredProcedure * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.For : Microsoft.EntityFrameworkCore.Metadata.IStoreStoredProcedure * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function For (storedProcedure As IStoreStoredProcedure, designTime As Boolean) As IEnumerable(Of IAnnotation)
参数
- storedProcedure
- IStoreStoredProcedure
存储过程。
- designTime
- Boolean
模型是否应包含设计时配置。
返回
批注。
实现
适用于
For(IStoreStoredProcedureParameter, Boolean)
获取给定 IStoreStoredProcedureParameter的特定于提供程序的注释。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> For(Microsoft.EntityFrameworkCore.Metadata.IStoreStoredProcedureParameter parameter, bool designTime);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IStoreStoredProcedureParameter * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.For : Microsoft.EntityFrameworkCore.Metadata.IStoreStoredProcedureParameter * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function For (parameter As IStoreStoredProcedureParameter, designTime As Boolean) As IEnumerable(Of IAnnotation)
参数
- parameter
- IStoreStoredProcedureParameter
参数。
- designTime
- Boolean
模型是否应包含设计时配置。
返回
批注。
实现
适用于
For(IStoreStoredProcedureResultColumn, Boolean)
获取给定 IStoreStoredProcedureResultColumn的特定于提供程序的注释。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> For(Microsoft.EntityFrameworkCore.Metadata.IStoreStoredProcedureResultColumn column, bool designTime);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IStoreStoredProcedureResultColumn * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.For : Microsoft.EntityFrameworkCore.Metadata.IStoreStoredProcedureResultColumn * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function For (column As IStoreStoredProcedureResultColumn, designTime As Boolean) As IEnumerable(Of IAnnotation)
参数
结果列。
- designTime
- Boolean
模型是否应包含设计时配置。
返回
批注。
实现
适用于
For(ITable, Boolean)
获取给定 ITable的特定于提供程序的注释。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> For(Microsoft.EntityFrameworkCore.Metadata.ITable table, bool designTime);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.ITable * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.For : Microsoft.EntityFrameworkCore.Metadata.ITable * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function For (table As ITable, designTime As Boolean) As IEnumerable(Of IAnnotation)
参数
- table
- ITable
表。
- designTime
- Boolean
模型是否应包含设计时配置。
返回
批注。
实现
适用于
For(ITableIndex, Boolean)
获取给定 ITableIndex的特定于提供程序的注释。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> For(Microsoft.EntityFrameworkCore.Metadata.ITableIndex index, bool designTime);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.ITableIndex * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.For : Microsoft.EntityFrameworkCore.Metadata.ITableIndex * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function For (index As ITableIndex, designTime As Boolean) As IEnumerable(Of IAnnotation)
参数
- index
- ITableIndex
索引。
- designTime
- Boolean
模型是否应包含设计时配置。
返回
批注。
实现
适用于
For(ITrigger, Boolean)
获取给定 ITrigger的特定于提供程序的注释。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> For(Microsoft.EntityFrameworkCore.Metadata.ITrigger trigger, bool designTime);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.ITrigger * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.For : Microsoft.EntityFrameworkCore.Metadata.ITrigger * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function For (trigger As ITrigger, designTime As Boolean) As IEnumerable(Of IAnnotation)
参数
- trigger
- ITrigger
触发器。
- designTime
- Boolean
模型是否应包含设计时配置。
返回
批注。
实现
适用于
For(IUniqueConstraint, Boolean)
获取给定 IUniqueConstraint的特定于提供程序的注释。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> For(Microsoft.EntityFrameworkCore.Metadata.IUniqueConstraint constraint, bool designTime);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IUniqueConstraint * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.For : Microsoft.EntityFrameworkCore.Metadata.IUniqueConstraint * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function For (constraint As IUniqueConstraint, designTime As Boolean) As IEnumerable(Of IAnnotation)
参数
- constraint
- IUniqueConstraint
唯一约束。
- designTime
- Boolean
模型是否应包含设计时配置。
返回
批注。
实现
适用于
For(IFunctionColumn, Boolean)
获取给定 IFunctionColumn的特定于提供程序的注释。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> For(Microsoft.EntityFrameworkCore.Metadata.IFunctionColumn column, bool designTime);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IFunctionColumn * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.For : Microsoft.EntityFrameworkCore.Metadata.IFunctionColumn * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function For (column As IFunctionColumn, designTime As Boolean) As IEnumerable(Of IAnnotation)
参数
- column
- IFunctionColumn
列。
- designTime
- Boolean
模型是否应包含设计时配置。
返回
批注。
实现
适用于
For(IForeignKeyConstraint, Boolean)
获取给定 IForeignKeyConstraint的特定于提供程序的注释。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> For(Microsoft.EntityFrameworkCore.Metadata.IForeignKeyConstraint foreignKey, bool designTime);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IForeignKeyConstraint * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.For : Microsoft.EntityFrameworkCore.Metadata.IForeignKeyConstraint * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function For (foreignKey As IForeignKeyConstraint, designTime As Boolean) As IEnumerable(Of IAnnotation)
参数
- foreignKey
- IForeignKeyConstraint
外键。
- designTime
- Boolean
模型是否应包含设计时配置。
返回
批注。
实现
适用于
For(IColumn, Boolean)
获取给定 IColumn的特定于提供程序的注释。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> For(Microsoft.EntityFrameworkCore.Metadata.IColumn column, bool designTime);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IColumn * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.For : Microsoft.EntityFrameworkCore.Metadata.IColumn * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function For (column As IColumn, designTime As Boolean) As IEnumerable(Of IAnnotation)
参数
- column
- IColumn
列。
- designTime
- Boolean
模型是否应包含设计时配置。
返回
批注。
实现
适用于
For(ICheckConstraint, Boolean)
获取给定 ICheckConstraint的特定于提供程序的注释。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> For(Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint checkConstraint, bool designTime);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.For : Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function For (checkConstraint As ICheckConstraint, designTime As Boolean) As IEnumerable(Of IAnnotation)
参数
- checkConstraint
- ICheckConstraint
检查约束。
- designTime
- Boolean
模型是否应包含设计时配置。
返回
批注。
实现
适用于
For(ICheckConstraint)
获取给定 ICheckConstraint的特定于提供程序的注释。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> For(Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint checkConstraint);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.For : Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function For (checkConstraint As ICheckConstraint) As IEnumerable(Of IAnnotation)
参数
- checkConstraint
- ICheckConstraint
检查约束。
返回
批注。
实现
适用于
For(IColumn)
获取给定 IColumn的特定于提供程序的注释。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> For(Microsoft.EntityFrameworkCore.Metadata.IColumn column);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IColumn -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.For : Microsoft.EntityFrameworkCore.Metadata.IColumn -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function For (column As IColumn) As IEnumerable(Of IAnnotation)
参数
- column
- IColumn
列。
返回
批注。
实现
适用于
For(IForeignKeyConstraint)
获取给定 IForeignKeyConstraint的特定于提供程序的注释。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> For(Microsoft.EntityFrameworkCore.Metadata.IForeignKeyConstraint foreignKey);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IForeignKeyConstraint -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.For : Microsoft.EntityFrameworkCore.Metadata.IForeignKeyConstraint -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function For (foreignKey As IForeignKeyConstraint) As IEnumerable(Of IAnnotation)
参数
- foreignKey
- IForeignKeyConstraint
外键。
返回
批注。
实现
适用于
For(IFunctionColumn)
获取给定 IFunctionColumn的特定于提供程序的注释。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> For(Microsoft.EntityFrameworkCore.Metadata.IFunctionColumn column);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IFunctionColumn -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.For : Microsoft.EntityFrameworkCore.Metadata.IFunctionColumn -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function For (column As IFunctionColumn) As IEnumerable(Of IAnnotation)
参数
- column
- IFunctionColumn
列。
返回
批注。
实现
适用于
For(IRelationalModel)
获取给定 IRelationalModel的特定于提供程序的注释。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> For(Microsoft.EntityFrameworkCore.Metadata.IRelationalModel model);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IRelationalModel -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.For : Microsoft.EntityFrameworkCore.Metadata.IRelationalModel -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function For (model As IRelationalModel) As IEnumerable(Of IAnnotation)
参数
- model
- IRelationalModel
数据库模型。
返回
批注。
实现
适用于
For(ISequence)
获取给定 ISequence的特定于提供程序的注释。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> For(Microsoft.EntityFrameworkCore.Metadata.ISequence sequence);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.ISequence -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.For : Microsoft.EntityFrameworkCore.Metadata.ISequence -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function For (sequence As ISequence) As IEnumerable(Of IAnnotation)
参数
- sequence
- ISequence
序列。
返回
批注。
实现
适用于
For(IView, Boolean)
获取给定 IView的特定于提供程序的注释。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> For(Microsoft.EntityFrameworkCore.Metadata.IView view, bool designTime);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IView * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.For : Microsoft.EntityFrameworkCore.Metadata.IView * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function For (view As IView, designTime As Boolean) As IEnumerable(Of IAnnotation)
参数
- view
- IView
视图。
- designTime
- Boolean
模型是否应包含设计时配置。
返回
批注。
实现
适用于
For(ISqlQuery)
获取给定 ISqlQuery的特定于提供程序的注释。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> For(Microsoft.EntityFrameworkCore.Metadata.ISqlQuery sqlQuery);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.ISqlQuery -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.For : Microsoft.EntityFrameworkCore.Metadata.ISqlQuery -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function For (sqlQuery As ISqlQuery) As IEnumerable(Of IAnnotation)
参数
- sqlQuery
- ISqlQuery
SQL 查询。
返回
批注。
实现
适用于
For(IStoreFunction)
获取给定 IStoreFunction的特定于提供程序的注释。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> For(Microsoft.EntityFrameworkCore.Metadata.IStoreFunction function);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IStoreFunction -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.For : Microsoft.EntityFrameworkCore.Metadata.IStoreFunction -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function For (function As IStoreFunction) As IEnumerable(Of IAnnotation)
参数
- function
- IStoreFunction
函数。
返回
批注。
实现
适用于
For(ITable)
获取给定 ITable的特定于提供程序的注释。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> For(Microsoft.EntityFrameworkCore.Metadata.ITable table);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.ITable -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.For : Microsoft.EntityFrameworkCore.Metadata.ITable -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function For (table As ITable) As IEnumerable(Of IAnnotation)
参数
- table
- ITable
表。
返回
批注。
实现
适用于
For(ITableIndex)
获取给定 ITableIndex的特定于提供程序的注释。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> For(Microsoft.EntityFrameworkCore.Metadata.ITableIndex index);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.ITableIndex -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.For : Microsoft.EntityFrameworkCore.Metadata.ITableIndex -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function For (index As ITableIndex) As IEnumerable(Of IAnnotation)
参数
- index
- ITableIndex
索引。
返回
批注。
实现
适用于
For(IUniqueConstraint)
获取给定 IUniqueConstraint的特定于提供程序的注释。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> For(Microsoft.EntityFrameworkCore.Metadata.IUniqueConstraint constraint);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IUniqueConstraint -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.For : Microsoft.EntityFrameworkCore.Metadata.IUniqueConstraint -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function For (constraint As IUniqueConstraint) As IEnumerable(Of IAnnotation)
参数
- constraint
- IUniqueConstraint
唯一约束。
返回
批注。
实现
适用于
For(IView)
获取给定 IView的特定于提供程序的注释。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> For(Microsoft.EntityFrameworkCore.Metadata.IView view);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IView -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.For : Microsoft.EntityFrameworkCore.Metadata.IView -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function For (view As IView) As IEnumerable(Of IAnnotation)
参数
- view
- IView
视图。
返回
批注。
实现
适用于
For(IViewColumn)
获取给定 IViewColumn的特定于提供程序的注释。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> For(Microsoft.EntityFrameworkCore.Metadata.IViewColumn column);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IViewColumn -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.For : Microsoft.EntityFrameworkCore.Metadata.IViewColumn -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function For (column As IViewColumn) As IEnumerable(Of IAnnotation)
参数
- column
- IViewColumn
列。
返回
批注。
实现
适用于
For(ISqlQueryColumn)
获取给定 ISqlQueryColumn的特定于提供程序的注释。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> For(Microsoft.EntityFrameworkCore.Metadata.ISqlQueryColumn column);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.ISqlQueryColumn -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.For : Microsoft.EntityFrameworkCore.Metadata.ISqlQueryColumn -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function For (column As ISqlQueryColumn) As IEnumerable(Of IAnnotation)
参数
- column
- ISqlQueryColumn
列。
返回
批注。
实现
适用于
For(IViewColumn, Boolean)
获取给定 IViewColumn的特定于提供程序的注释。
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> For(Microsoft.EntityFrameworkCore.Metadata.IViewColumn column, bool designTime);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IViewColumn * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
override this.For : Microsoft.EntityFrameworkCore.Metadata.IViewColumn * bool -> seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation>
Public Overridable Function For (column As IViewColumn, designTime As Boolean) As IEnumerable(Of IAnnotation)
参数
- column
- IViewColumn
列。
- designTime
- Boolean
模型是否应包含设计时配置。
返回
批注。