Hello,
I'm working in the dataset designer in Visual Studios 2012 and I would like to create two relations between two tables. The one table is the "Courses" table, and the other is the "CourseRelation" table. Basically, the CourseRelation table relates one course to another. So I want to create two relations between the two tables. For the first relation, I want to relate CourseRelation.CourseID to Courses.ID, and in the second relation, I want to relate CourseRelation.RelatedCourseID to Course.ID.
But when I do this in the Relation dialog, it says:
"Cannot create a Key when the same column is listed more than once: 'ID'
These kinds of relation aren't impossible and I can't be the first one to try it. How can I accomplish what I want to accomplish?
I'm working in the dataset designer in Visual Studios 2012 and I would like to create two relations between two tables. The one table is the "Courses" table, and the other is the "CourseRelation" table. Basically, the CourseRelation table relates one course to another. So I want to create two relations between the two tables. For the first relation, I want to relate CourseRelation.CourseID to Courses.ID, and in the second relation, I want to relate CourseRelation.RelatedCourseID to Course.ID.
But when I do this in the Relation dialog, it says:
"Cannot create a Key when the same column is listed more than once: 'ID'
These kinds of relation aren't impossible and I can't be the first one to try it. How can I accomplish what I want to accomplish?