[英]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中可见。
You want create relationship in two table Refer this link 您要在两个表中创建关系请参阅此链接
http://www.c-sharpcorner.com/Blogs/5608/create-a-relationship-between-two-dataset-tables.aspx http://www.c-sharpcorner.com/Blogs/5608/create-a-relationship-between-two-dataset-tables.aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.