VB.NET Syntax for data relations

Tags:
Development
Software testing
I'm using the dataset helper class to join datatables. I need to join datatables with multiple primary/foreign keys, but I can't find the syntax for Data.DataRelations.Relations.Add that allows joining more than one column. Is it possible to do this? Thanks.

Answer Wiki

Thanks. We'll let you know when a new response is added.

some questions that may help clarify:
a) are compound PK/FK required? if design is still flexible, use of single artificial (meaningless) PK is often preferable, with UNIQUE asserted over alternate (compound key) attributes. May be cast “in stone” though …

b) a VIEW established to project the data your application requires could be useful, not only to bypass compound key complexities but in fact to “project” the data your app really wants.

My take is that if your app is asking for specific table and column data from a number of sources, it knows too much about the DB schema already.

As for some clever VB syntax miracle/workaround, I have no idea.

HTH

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following