Connecting to database using Asp.net MVC

1

My doubt, perhaps not a bit technical, but rather of better concept, usability, or advantages.

I have a good experience in ASP.NET development using webforms, and I am looking to expand my knowledge by studying asp.net mvc, and asp.net web api.

Following a course, I learned how to connect to the database, sql server, and I was able to adapt to mysql (which I usually use more) using ADO.NET Entity Data Model . Which creates the class of dbContext , searches in my database all the tables I want and already creates the classes with the properties .

My question is if I can also connect to my database without using the ADO.NET Entity Data Model , manually creating the connection string, creating my dbContext, and classes manually?

If yes, I would like to learn a little better about the advantages of using ADO.NET Entity Data Model , whether to use it or not.

    
asked by anonymous 30.12.2014 / 19:18

1 answer

1

After studying and researching a lot and also learning in practice, I recognize that in an asp.net mvc project, it is very helpful to use the ADO.NET Entity Data Model . I had a bit of trouble at the beginning to configure the connection to different banks other than MS Sql Server, Mysql and Oracle , but then it was all quiet, and it's a much more useful and different concept than I was used to.

    
22.07.2015 / 13:33