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,530
  • 29
  • 114
  • 159

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
  • 524,688
  • 99
  • 697
  • 795