J
John
I have a couple of tables in my database, and 1 of my tables has a primary
key that consist of 2 columns. I'm inserting data into another table that
has a foreign key (2 columns also) based on the primary key of the 1st
table.
All of the data going in looks correct. However, when I try to do a
SubmitChanges(), I get an IndexOutOfRangeException.
I created my foreign key with the designer, so I doubt that it's wrong, and
if I change the primary key table to just have 1 column as the primary key,
everything works fine.
So what's up? Can Linq to SQL just not support this with a primary key that
spans more than 1 column? Why the error? So sad.
Thanks.
key that consist of 2 columns. I'm inserting data into another table that
has a foreign key (2 columns also) based on the primary key of the 1st
table.
All of the data going in looks correct. However, when I try to do a
SubmitChanges(), I get an IndexOutOfRangeException.
I created my foreign key with the designer, so I doubt that it's wrong, and
if I change the primary key table to just have 1 column as the primary key,
everything works fine.
So what's up? Can Linq to SQL just not support this with a primary key that
spans more than 1 column? Why the error? So sad.
Thanks.