-
January 8th, 2014, 05:16 AM
#1
DataAnnotations - Foreign Key
I have two tables (Units and Products).
Products must have two Foreign Keys (column names are "Buy_Unit" and "Sale_Unit") referencing the Units table.
The primary key in Units table is named "Unit_Id".
I need to make it using Code First and DataAnnotations, the language must be VB.Net, but I've no idea how to do it...
Can you help me, only with this Foreign Key trouble?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|