Monday, March 26, 2012

What is The Best in the Big Projects

I and My Friend making now a big solution by asp.net , That Solution Is ERP System That Have a Part of HR and Part For Account and Part For Managment and Other Parts

and all my Project Built in ADO.Net

That is My First Big Project and i Have Two Choices Make All My Project

First Choice : Using Drag and Drop and Using the Smart Tags and other Features of Visual studio 2005

Second Choice : Using Code and Make Classes for every thing

Thats Is My First Big Project and I want the help. Using the First Choice or the Second Choice and Why?

Thanks for All

Hi mina_wana

What follows are my opinions and others may differ.

The use of datasource controls and drag and drop with web forms is ideal for small projects that need to be done fast, but they are not good for large projects.

Large projects need to incorporate a Data Access Layer, Business Logic Layer and Presentation Layer. I like to do as much as possible using classes and code. It may take longer that the First choice but it means you will have an application that is easily maintained and upgradable.

Here is a link that you may find interesting

http://msdn2.microsoft.com/en-us/library/ms973279.aspx

Regards

ScottyB


In a large application you definitely want to have a tiered approach to code. That basically means, as you said, "using code and making classes for every thing". Not only will this provide unity within the application, but if you organize your classes correctly, it will cut down on coding necessary to support changes & updates down the line.

For example. Let's say you went with the first choice and had everything on the website. All CRUD (create read update delete) operations on your databas was done via SqlDataObjects etc. What would happen when you decide to make a small change? Well, you have 5 different pages that access the same data -- one that inputs it, one that edits it, one that does some sort of reporting on it, one that ... etc. So you change them all, thats a pain. But you make a tiny mistake on one! You can see where this is going.

I wouldhighly suggest taking a look at SubSonic (www.subsonicproject.com). It's a DAL (Data Access Layer) generator that looks at your database and generates code for all your CRUD operations. It even creates Collection objects (if it creates an object called Account it'll also create an AccountCollection object that can be used to store multiple Accounts, sort, etc). It'll create a class with all your Stored Procedures too! You can always extend its functionality too using partial classes. SubSonic is a massive time saver! It definitely takes the "daunting" out of n-tier programming.


Hi

my Idea is It depends on how you expert in VB or ASP

If you are .Net Programmer from ASP then for you the second method is good and fast sometimes for designing the page.

Or If you are from VB or in General the first method is much suitable for all.

But Actually both methods are used in large applications (design part only and for client scripts)

So decide yourself.

Think this will help


I would definitely suggest the tier approach. It helps for maintenance in the long run.


thanks for your Help

0 comments:

Post a Comment