将 SyncSchemaForeignKey 对象添加到集合的末尾,并添加指定的约束名、父表和列、子表和列。
命名空间: Microsoft.Synchronization.Data
程序集: Microsoft.Synchronization.Data(在 microsoft.synchronization.data.dll 中)
语法
声明
Public Function Add ( _
foreignKeyName As String, _
parentTable As String, _
parentColumn As String, _
childTable As String, _
childColumn As String _
) As SyncSchemaForeignKey
用法
Dim instance As SyncSchemaForeignKeys
Dim foreignKeyName As String
Dim parentTable As String
Dim parentColumn As String
Dim childTable As String
Dim childColumn As String
Dim returnValue As SyncSchemaForeignKey
returnValue = instance.Add(foreignKeyName, parentTable, parentColumn, childTable, childColumn)
public SyncSchemaForeignKey Add (
string foreignKeyName,
string parentTable,
string parentColumn,
string childTable,
string childColumn
)
public:
SyncSchemaForeignKey^ Add (
String^ foreignKeyName,
String^ parentTable,
String^ parentColumn,
String^ childTable,
String^ childColumn
)
public SyncSchemaForeignKey Add (
String foreignKeyName,
String parentTable,
String parentColumn,
String childTable,
String childColumn
)
public function Add (
foreignKeyName : String,
parentTable : String,
parentColumn : String,
childTable : String,
childColumn : String
) : SyncSchemaForeignKey
参数
- foreignKeyName
外键约束的名称。
- parentTable
父表的名称。
- parentColumn
父表中主键或唯一列的名称。
- childTable
子表的名称。
- childColumn
子表中外键列的名称。
返回值
已添加到集合中的 SyncSchemaForeignKey 对象。
请参阅
参考
SyncSchemaForeignKeys 类
SyncSchemaForeignKeys 成员
Microsoft.Synchronization.Data 命名空间