Manually connecting to a database in Asp.net MVC

Is it possible to manually connect to the database using sqlclient and sqlconnection (i.e. the standard ADO.net method) instead of using LINQ or Entity Framework in Asp.Net MVC?

I beg you, thanks

0
asp.net-mvc sqlclient
source share
1 answer

Yes. There is nothing magical about MVC. Just create your connection and specify the way you would be in the past in your action method and populate your DataTable.

+4
source share

All Articles