DataGenerationServices.GetReferencingTables 方法
返回提供的表所引用的那些表的列表,需要时可以包括任何自引用。
命名空间: Microsoft.Data.Schema.Tools.DataGenerator
程序集: Microsoft.Data.Schema.Tools(在 Microsoft.Data.Schema.Tools.dll 中)
语法
声明
Public MustOverride Function GetReferencingTables ( _
targetTable As IDatabaseTable, _
includeSelfReference As Boolean _
) As ICollection(Of IDatabaseTable)
public abstract ICollection<IDatabaseTable> GetReferencingTables(
IDatabaseTable targetTable,
bool includeSelfReference
)
public:
virtual ICollection<IDatabaseTable^>^ GetReferencingTables(
IDatabaseTable^ targetTable,
bool includeSelfReference
) abstract
abstract GetReferencingTables :
targetTable:IDatabaseTable *
includeSelfReference:bool -> ICollection<IDatabaseTable>
public abstract function GetReferencingTables(
targetTable : IDatabaseTable,
includeSelfReference : boolean
) : ICollection<IDatabaseTable>
参数
- targetTable
类型:Microsoft.Data.Schema.SchemaModel.Abstract.IDatabaseTable
一个 IDatabaseTable 对象。
- includeSelfReference
类型:System.Boolean
true 表示包括任何自引用;false 表示排除自引用。
返回值
类型:System.Collections.Generic.ICollection<IDatabaseTable>
引用所提供表的表的列表。
备注
通过此方法提供此信息,以便您的数据库架构模型可以显示在 Visual Studio 项目中,在那里用户可以创建和操作您已经在模型中定义的数据库对象。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。