I'm writing a website in ASP.NET 5 MVC 6 and need to setup a connection to a SQL Server database in order to retrieve some data.
Since I have many existing databases with a lot tables that I have to pull data from with small queries, I believe ADO.NET would be easier to work with than Entity Framework.
How should I go about implementing this in ASP.NET 5?
I've tried to follow this tutorial http://www.compilemode.com/2015/09/crud-operations-in-aspnet-mvc-5.html (it's for ASP.NET MVC 5) but at the EmpRepository
I was getting errors about the ConfigurationManager
not existing in the current context, although I had using System.Configuration;
and a reference to the assembly. I've tried everything that was suggested in this The name 'ConfigurationManager' does not exist in the current context post. Same error still remains.
Is there another way of setting up a connection with ADO.NET using ASP.NET 5?