I have some stored procedures that are coming from a different database a previous developer created that I need to create views for in our app. I am wondering how to let's say I have a list of customers coming back from this stored procedure, I want to create a relation between this customer coming back from the stored procedure with an ABP user. I want to have my user have a one to many relationship with customers associated with it. I am thinking I will need to creating a mapping table that will store the customer's id in it so that when it goes and grabs this list of customer's it will know how to map the user with its associated customer's. Any help would be greatly appreciated.
3 Answer(s)
-
0
Hi,
Your question seems not related to ABP, but a general EF mapping problem. As I understand, you want to add a CustomerId to AbpUsers table, so you will know which User belong to which customer, but you don't have a Customers table in the same database. If so, I could not understand it well why and how you do it :)
-
0
The reason, why I am trying to do it, is to give a web front to an old legacy system.
-
0
OK, I understand why, but still did not understand what are you trying with code. Is it possible to provide some code sample and where is the place you can not go further.