简体   繁体   中英

Foreign key in C#

I have two tables, A and B, in a dataset in SQL Server; I have created a connection to the dataset in ac# project in visual studio. How can I create a foreign key ( A is the parent) between my two tables ? I want to create the foreign key in visual studio and that it is visible in SQL server.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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