How to create a constraint with multiple columns using OLEdb
The use case is for an Access database using OLEdb via C#. I need to build the tables or alter afterward to establish the relationships between a couple tables. I am able to get the relationship with one column in the table to another column in a foreign table. I am using this syntax for the constraint, CONSTRAINT FK_indexname REFERENCES tablename (columnName) ON DELETE CASCADE. However I need to have a single column (ID) to multiple columns in a foreign table. The use is I have a item table for all the items used and a recipe table where several columns will reference the item table. Here is what I built in Access that I need to understand the proper syntax to use in my code.
Thanks for your help