Mapping one column in a table to multiple tables

Posted by user1721814 on Stack Overflow See other posts from Stack Overflow or by user1721814
Published on 2013-11-04T07:45:14Z Indexed on 2013/11/04 21:54 UTC
Read the original article Hit count: 221

I am working on a new product development creating a WMS system. I have done it in past using ASP, VB, and other techniques where we did not hard code the mapping. But now i am working on it using MVC and entity frame work and i am stumped. How can i map one column in transaction table to a column in multiple tables.

I have transaction table trans Transid orderref TType productid qty ....(More Columns) now the orderref will hold either Receiptkey, orderkey , movementkey, adjustmentkey and the TType column will tell me which type of transaction i am dealing with and based on that i would know which table to link further. Now how can i achieve this in Entity Frame work. This is the most important step. I have done this many times in my other languages but now using EF i am stuck. Please help. I have checked a lot online but i have not found it. I am new to MVC and entity frame work architecture. Any guidance would be highly appreciated.

Ranjit

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about entity-framework