Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I refresh the relationships in a dataset?

I a working in VisualStudio 2005. I have a dataset with sevaral datatables in it already. I had to modify the database to add a new foreign key that I forgot about. How do I get visual studio to recognize the new relationship?

like image 284
Kalel Avatar asked Dec 09 '25 13:12

Kalel


1 Answers

.Net does not load FK relationships into your DataSet automatically - however, you can add them yourself with a DataRelation*.

*this may not be true if you are using LINQ - if you are, I am unsure.

like image 196
Tom Ritter Avatar answered Dec 11 '25 05:12

Tom Ritter



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!