Click here to Skip to main content
15,881,938 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Dear all,

I am not idea to save row data into another database from DataTables using EF MVC. Thank You appreciate for your help.

What I have tried:

My dataTables can show on data on screen but not idea to save another database when pressed "Import" button using JSON MVC.

example :

"Import Button"

Fruit ID | Name | Location
F-0001 | Apple| USA
Posted
Comments
[no name] 5-Jun-21 14:07pm    
You copy the values from the DataTable's DataRow to a new EF entity / class, then save the entity. But the DataTable / DataRow may be redundant in the first place because we don't have the big picture.

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