Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Entity framework and LINQ vs Strongly typed dataset
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01540673
Message ID:
01540679
Vues:
51
>>>>I have been watching the Pluralsight Tutorials on ASP.NET MVC 3 and I am totally confused to the direction I want to following. It looks like (from the little I understood) that ASP.NET MVC 3 "suggesting" (or maybe even requires) to use the Entity Framework and LINQ. Of course I don't quite understand these technologies and also find them very complicated.
>>>>
>>>>A couple of years ago I created a small WinForms app using strongly typed dataset approach. It was slow to understand back then but it was less complicated (I think) and I had more control.
>>>>
>>>>So now I am not sure which direction I should follow when building a small ASP.NET application. The application (as the starting point) will be performing the following:
>>>>
>>>>1. Get a data set from the SQL Server database.
>>>>2. Display the data in the grid view.
>>>>3. Allow user to switch to a detailed view (where fields are in textbox controls).
>>>>4. Allow user to make changes and save (when click on Save button) the changes to the database.
>>>>
>>>>Any suggestions to which approach you like? TIA.
>>>
>>>ASP.NET ASPX page with GridView and SQLDataSource. That is by far the simplest.
>>
>>I don't know what you mean by SQLDATASource (and will try to search on it). But will it (and how) allow the application save the data back to the database (once user makes changes)?
>
>If you have a primary key defined on your table(s), the SQLDatasource can generate the proper update and delete code. The GridView plays nicely with the SQLDatasource and will use the SQLDatasource to automatically make the changes.
>
>You can, if needed, specify commands or stored procedure names manually for the SQLDataSource.

So far, from your reply, this sounds much simpler than the EF and MVC. I will research this option. Thank you!
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform