Question

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

Please guide me Thanks

Was it helpful?

Solution

Yes. Nothing magic about MVC in that regard. Just create your connection and command the way you would have in the past in your action method and fill your DataTable.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top