How to update relationships in a dataset?

I work in VisualStudio 2005. I already have a dataset with sevral data. I had to modify the database to add a new foreign key that I forgot about. How to get a visual studio to recognize new relationships?

+3
source share
2 answers

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

* this may not be true if you use LINQ - if so, I'm not sure.

+1
source

Right-click on the DataSet page and select Add-> Relation?

, , .

0

Source: https://habr.com/ru/post/1697668/


All Articles