0

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

Josh
  • 13,120
  • 28
  • 112
  • 158

1 Answers1

4

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.

tvanfosson
  • 509,016
  • 97
  • 693
  • 791