Поделиться через


DataGenerationServices.GetReferencingTables Method

Returns a list of tables that reference the provided table, 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 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>

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 tables that reference the provided table.

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