DataGenerationServices.GetReferencedTables Method
Returns all tables that are referenced by the specified target table.
Namespace: Microsoft.Data.Schema.DataGenerator
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
Public MustOverride Function GetReferencedTables ( _
targetTable As ITable, _
includeSelfReference As Boolean _
) As ICollection(Of ITable)
'Usage
Dim instance As DataGenerationServices
Dim targetTable As ITable
Dim includeSelfReference As Boolean
Dim returnValue As ICollection(Of ITable)
returnValue = instance.GetReferencedTables(targetTable, _
includeSelfReference)
public abstract ICollection<ITable> GetReferencedTables(
ITable targetTable,
bool includeSelfReference
)
public:
virtual ICollection<ITable^>^ GetReferencedTables(
ITable^ targetTable,
bool includeSelfReference
) abstract
public abstract function GetReferencedTables(
targetTable : ITable,
includeSelfReference : boolean
) : ICollection<ITable>
abstract GetReferencedTables :
targetTable:ITable *
includeSelfReference:bool -> ICollection<ITable>
Parameters
- targetTable
Type: Microsoft.Data.Schema.SchemaModel.Abstract.ITable
The target table
- includeSelfReference
Type: System.Boolean
Specifies whether to include self reference
Return Value
Type: System.Collections.Generic.ICollection<ITable>
Remarks
These are the tables that are typically referenced by referential integrity constraints. In this case, the returned tables are those tables whose primary keys are held by the target table as foreign keys.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.