Web Application in ASP.NET MVC CRUD with MS access

Asked

Viewed 284 times

1

I’m doing a job, and I need to do a web application to track tasks. The requirements are those of the topic. It is a web application made in ASP.NET MVC and access database creating a CRUD. I’m having a hard time getting past the connecting part of the database. So far I have created the database, created the connection by the server Solution. After that I created the Web app MVC 5 in visual studio. At this moment my doubts begin. I found on the internet that it is necessary (in case it has not appeared on Web.config ) to add the following code :

 <connectionStrings>
<add name="ConexaoMSAccess"connectionString="Provider=Microsoft.Jet.OleDb.4.0;DataSource=|DataDirectory|Cadastro.mdb" 
 providerName="System.Data.OleDb" />
 </connectionStrings>

Ok I add this code, after that I need to add a file in the App_data folder, in case the BD. When I do this another connection appears on the server Solution, with the same name as the one I had already done. My second question is already going a little further, at this point I must create a new class in the model folder. This class will have the get and set methods of all columns of my table. Is that correct? After that what’s the next step for CRUD?

  • You could see some tutorial on youtue and follow step-by-step and could do a crud on Asp.net and mvc.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.