DataGenerationServices.Annotate 方法

分析所提供的表,并附加数据生成批注以指定每列的配置信息。

命名空间:  Microsoft.Data.Schema.Tools.DataGenerator
程序集:  Microsoft.Data.Schema.Tools(在 Microsoft.Data.Schema.Tools.dll 中)

语法

声明
Public MustOverride Function Annotate ( _
    targetTable As IDatabaseTable _
) As IList(Of DataSchemaError)
public abstract IList<DataSchemaError> Annotate(
    IDatabaseTable targetTable
)
public:
virtual IList<DataSchemaError^>^ Annotate(
    IDatabaseTable^ targetTable
) abstract
abstract Annotate : 
        targetTable:IDatabaseTable -> IList<DataSchemaError> 
public abstract function Annotate(
    targetTable : IDatabaseTable
) : IList<DataSchemaError>

参数

返回值

类型:System.Collections.Generic.IList<DataSchemaError>
错误对象的列表,这些对象指示分析期间发生的所有问题。

备注

通过这种方法提供此信息,以使您的数据库架构模型可以参加Visual Studio项目。那里的用户可以创建和操作您的模型中已定义的数据库对象。

.NET Framework 安全性

请参见

参考

DataGenerationServices 类

Microsoft.Data.Schema.Tools.DataGenerator 命名空间

ModelAnnotation

IDatabaseTable

DataSchemaError