Home > Net >  MVC
MVC

Time:11-16

What MVC form submission database approach can detailed point o great god solved such as online!!!!!!

CodePudding user response:

Browser submitted by POST to the server, the server application receives the request, with the first what is more difficult, for example, data conversion, and then spell into Sql Insert statement written to the database,

Here, there are many ways to the browser to the server, in addition to the POST, also can PUT, GET, you can even use the websocket, HTTP format, data format can also can be the json format, can also define your own format, the server to the database, this passage also has many prick, MVC integrates many tools that can check, etc., can be automatically switched to write Sql database can own consolidation, can also use the ORM what of,

CodePudding user response:

You can use ef, linq to db, etc.
ado.netRecommend ef
https://blog.csdn.net/weixin_39781935/article/details/97284429

CodePudding user response:

Use ef, https://blog.csdn.net/chinacsharper/article/details/43927025