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

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Could you please give me an updated answer as I've edited the question? Thanks

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.