简体   繁体   English

C#中的外键

[英]Foreign key in C#

I have two tables, A and B, in a dataset in SQL Server; 我在SQL Server的数据集中有两个表A和B。 I have created a connection to the dataset in ac# project in visual studio. 我已经在Visual Studio中的ac#项目中创建了与数据集的连接。 How can I create a foreign key ( A is the parent) between my two tables ? 如何在两个表之间创建外键(A为父键)? I want to create the foreign key in visual studio and that it is visible in SQL server. 我想在Visual Studio中创建外键,并且该外键在SQL Server中可见。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM