Share via


DataGenerationServices.GetReferencedTables Method

Returns a list of tables that the provided table references, optionally including any self references.

Namespace:  Microsoft.Data.Schema.Tools.DataGenerator
Assembly:  Microsoft.Data.Schema.Tools (in Microsoft.Data.Schema.Tools.dll)

Syntax

'Declaration
Public MustOverride Function GetReferencedTables ( _
    targetTable As IDatabaseTable, _
    includeSelfReference As Boolean _
) As ICollection(Of IDatabaseTable)
public abstract ICollection<IDatabaseTable> GetReferencedTables(
    IDatabaseTable targetTable,
    bool includeSelfReference
)
public:
virtual ICollection<IDatabaseTable^>^ GetReferencedTables(
    IDatabaseTable^ targetTable, 
    bool includeSelfReference
) abstract
abstract GetReferencedTables : 
        targetTable:IDatabaseTable * 
        includeSelfReference:bool -> ICollection<IDatabaseTable> 
public abstract function GetReferencedTables(
    targetTable : IDatabaseTable, 
    includeSelfReference : boolean
) : ICollection<IDatabaseTable>

Parameters

  • includeSelfReference
    Type: System.Boolean
    true to include any self references; false to exclude self references.

Return Value

Type: System.Collections.Generic.ICollection<IDatabaseTable>
The list of referenced tables.

Remarks

Provide this information through this method so that your database schema model can be represented in Visual Studio projects, where users can create and manipulate database objects that you have defined in your model.

.NET Framework Security

See Also

Reference

DataGenerationServices Class

Microsoft.Data.Schema.Tools.DataGenerator Namespace

IDatabaseTable