Click here to Skip to main content
15,891,777 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear friends,
I am new in web application and MVC 5. I want to create web app with MVC 5. MVC 5 is auto create CRUD. But I want to write query myself. Like that. I have Master Table and Detail table. When I click save button, I want to insert one row to Master table and multiple rows in Detail Table with many manipulation process. When I learn to MVC 5, it has auto CRUD. But I want to write query like Asp.net web form application by using connection string. But I don't how to write in MVC 5. Please help with this friend. Thank you for your help.

What I have tried:

Create web application project with asp.net mvc 5.
Posted
Updated 12-Dec-17 22:30pm

You're getting Entity Framework confused with MVC, they are completely separate technologies. If you want to construct your own SQL and execute them against a database defined in a connection string then use ADO.net. Google "ado.net getting started" for examples.

ADO.NET code examples | Microsoft Docs[^]
 
Share this answer
 
Dear friend you can made database operations in model like your asp.net
 
Share this answer
 

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