Wrox Programmer Forums
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 4th, 2011, 08:37 PM
Authorized User
Join Date: Feb 2011
Posts: 13
Thanks: 2
Thanked 0 Times in 0 Posts
Default Big changes don't work so well

My first web app is coming along. I am building a prototype, which I review with users to discover new requirements. My biggest problem is when I find a new requirement and have to make large changes. The first time I tried this, everything crashed. I didn't have much invested in my prototype, so I just threw it away and started over. Later on, that gets to be harder to do. I found the biggest problem is the database entity diagrams (.edmx files). Things are better if I delete any tables that will change from the entity diagram, then re-add the modified tables. "Rebuild" is also a help.

Are there other hints for making very large changes?

I plan to re-write from scratch after the prototype is done. That lets me "design in" the CSS, validation, error handling, etc. But also, I'm just afraid of a lot of junk auto-generated code laying around. Opinions?
Old April 5th, 2011, 03:11 AM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

What changes are you referring to specifically? With EF, there's an Update Model feature that brings in changes without redoing the entire model. However, if you haven't renamed any of your tables, columns, relations and so on, redoing the model may be quicker.

But also, I'm just afraid of a lot of junk auto-generated code laying around.
Not sure what you mean by this.

If you want to rename code, you may want to look into Refactoring tools such as Refactor! from DevExpress or Resharper. They let you change / rename code (and do a whole lot more) through projects without breaking dependencies.

Finally, larger applications tend to break less if you have a high separation of concerns. So, if you have SQL Code directly in a SqlDataSource control, things will break in many locations when you change the database. If you abstract data access away to a separate data layer, you can minimize the places where you have to fix or change anything.

But I guess it all depends on the type of changes you're referring to. Changes to CSS or your data model require different handling than changes to the model, the UI, your client side validation and so on.


Imar Spaanjaars
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!

Similar Threads
Thread Thread Starter Forum Replies Last Post
How big is too big? chroniclemaster1 XML 5 September 17th, 2012 01:07 AM
First big errata m0y BOOK: Beginning Python: Using Python 2.6 and Python 3.1 3 December 6th, 2011 07:49 PM
Big Problem - Validator don't work online Maxxim BOOK: ASP.NET Website Programming Problem-Design-Solution 2 September 12th, 2006 06:59 PM
Big Query hortoristic SQL Server 2000 3 May 25th, 2004 04:01 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.