cancel
Showing results for 
Search instead for 
Did you mean: 

Compound/composite foreign keys not working?

03-21-2016 8:13 PM
6975 views 7 comments
SAP Managed Tags
Subscribe

I recently upgraded from Entity Framework 4 to EF6, but there seems to be an issue with the SQL Anywhere ADO.NET provider. In a database-first project, when I update the model (.edmx) from database, foreign keys that consist of two or more columns are not represented as an association afterwards. I'm currently using SA 16.0.0.2158. Does anyone have any experience with this, and/or any suggestions on how to fix this?

EDIT: Apparently, Entity Framework 4.4 (which is what I upgraded from) is actually Entity Framework 5.

I'm getting the following warning in Visual Studio:

Error 6035: The relationship X has columns that are not part of the key of the table on the primary side of the relationship. The relationship was excluded.

Accepted Solutions (0)

Answers (0)