Click here to Skip to main content
15,890,897 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi,

i am using db first approach in my application, i need to map the city_master_table entity results into my custom business model. i am unable to map the custom business model into city_master_table. Can anyone help me to find the solution.

Table : city_master_table
Columns: City_PID, City_Code,City_Name...etc

Custom Business Model : City
Properties : ID,Name,Code..etc

Thanks
Aswin S P
Posted
Comments
F-ES Sitecore 27-Aug-15 9:03am    
You need to define the relationships in SQL (google for how to relate tables in SQL if you don't know how) then update your model in Visual Studio and the relationships should appear. If refreshing the entities doesn't work try removing and re-adding them.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900