How to save data in multiple tables from single view
i want to save data of my register form in 4 different tables when i click save, i have same columns in tables . entity framework is taking only one table ,when i i update EF to add another tables it is not taking and how to access multiple models in single view
Rajendra MotePosted Aug 10, 2016, 10:23 AM
Vinay SinghPosted Aug 4, 2016, 7:42 AM
Rajeev PunhaniPosted Aug 4, 2016, 1:34 AM
Hi Suman,
Regarding access of multiple models in a single viewyou can use view model. Many ways are there to do but I prefer view model.Using view model you can have multiple tablesand you can pass a view model to controller and add to different tables.Please find the below link.
If the above solution is helpful then,accept the answer.
Bikesh SrivastavaPosted Aug 4, 2016, 1:28 AM