Click here to Skip to main content
15,886,026 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Cryptographer issue [modified] Pin
Sudhanshu Mani Tripathi26-Aug-10 19:48
Sudhanshu Mani Tripathi26-Aug-10 19:48 
QuestionProblem with Wizard Control Pin
AndyASPVB25-Aug-10 11:35
AndyASPVB25-Aug-10 11:35 
QuestionOdd Logon Failure with Enterprise Libraries Exception Handler Pin
DeepToot25-Aug-10 5:04
DeepToot25-Aug-10 5:04 
QuestionSilverlight and aspx pages Pin
future383925-Aug-10 4:11
future383925-Aug-10 4:11 
QuestionBuild DAL for asp.net 3.5 project, List <> or DataSet Pin
vrsanaidu25-Aug-10 1:49
vrsanaidu25-Aug-10 1:49 
AnswerRe: Build DAL for asp.net 3.5 project, List or DataSet Pin
Ennis Ray Lynch, Jr.25-Aug-10 3:50
Ennis Ray Lynch, Jr.25-Aug-10 3:50 
AnswerRe: Build DAL for asp.net 3.5 project, List or DataSet Pin
T M Gray25-Aug-10 11:44
T M Gray25-Aug-10 11:44 
AnswerRe: Build DAL for asp.net 3.5 project, List or DataSet Pin
Richard A. Dalton26-Aug-10 4:32
Richard A. Dalton26-Aug-10 4:32 
Once upon a time I lived in hope that someone somewhere could show me the correct way to structure an application and pass data between the layers.

I gave up, because there is no right way.

There is virtually no point in trying to figure out whether it's better to pass around DataSets, Lists, XML, or some other representation of your data.

You would not only have to figure out the verious pros and cons of each method, you'd be confused into a stupor by trying to seperate facts from the quasi-religious views of the very "experts" that would be offering to reveal the facts.

So. Forget for one second that there are Datasets and Lists etc. Figure out what constraints are in place, then figure out what service you're Data Layer needs to perform and then work from there.

For example...NHibernate is cool, but If your organisation won't let you install NHibernate then NHibernate is out immediately. Simples.

Next try and figure out as many different ways of moving data around that fit within your constraints. Actually build a few vertical slices of applications. You'll learn more from doing this that from reading 100 pro/con articles.

DataSets have some powerfull features for tracking changes to data. DataSets are also wonderfully simple to bind to.

If you code custom business objects and pass around lists, are you prepared to do the work necessary to replicate that functionality? Do you even need to replicate it?

Is your DataLayer adding any value. I can't count the number of times I've seen Business Layer Objects that pass their data to a Data Layer Object that do nothing more than pass the same data through to the Database.

This might be worthwhile if there was a potential for swapping out the Data layer, but that's so rarely the case.

Of late I have become very fond of domain objects that are completely ignorant of the database. There is no DB logic in there at all. The domain objects don't even know about the Data Layer objects.

I don't really care about DataSets, Lists, XML, NHibernate etc. Those are implementation details, the big issue is the persistence ignorance.

That's not to say that persistence ignorance is always the way to go. The project I'm working on right now doesn't use it because I'm working within contraints that were already in place when I arrived. And that's fine.

Worrying about Datasets vs Lists without knowing the big picture is like obsessing over a Sedan or an SUV even though you have no idea where you'll be driving or how many passengers you'll have.

If I could sum up my philosophy on this I would say the following:

Build Apps using the simplest solution possible until you know enough to justify why a more complicated solution gives enough long term advantages to justify itself.

If someone doesn't know whether they should use DataSets or not then they should use DataSets until they figure out why they shouldn't.

Hope that helps.
QuestionApparent issues with ASP.NET 4.0 and VS 2010 Pin
Talal Sultan23-Aug-10 19:19
Talal Sultan23-Aug-10 19:19 
AnswerRe: Apparent issues with ASP.NET 4.0 and VS 2010 Pin
R. Giskard Reventlov23-Aug-10 21:34
R. Giskard Reventlov23-Aug-10 21:34 
AnswerRe: Apparent issues with ASP.NET 4.0 and VS 2010 Pin
Eaverae23-Aug-10 22:48
Eaverae23-Aug-10 22:48 
GeneralRe: Apparent issues with ASP.NET 4.0 and VS 2010 Pin
Talal Sultan23-Aug-10 23:17
Talal Sultan23-Aug-10 23:17 
GeneralRe: Apparent issues with ASP.NET 4.0 and VS 2010 Pin
Eaverae23-Aug-10 23:39
Eaverae23-Aug-10 23:39 
AnswerRe: Apparent issues with ASP.NET 4.0 and VS 2010 Pin
Eaverae24-Aug-10 4:58
Eaverae24-Aug-10 4:58 
GeneralRe: Apparent issues with ASP.NET 4.0 and VS 2010 Pin
Talal Sultan24-Aug-10 19:12
Talal Sultan24-Aug-10 19:12 
AnswerRe: Apparent issues with ASP.NET 4.0 and VS 2010 Pin
Eaverae25-Aug-10 0:45
Eaverae25-Aug-10 0:45 
GeneralRe: Apparent issues with ASP.NET 4.0 and VS 2010 Pin
Talal Sultan25-Aug-10 2:06
Talal Sultan25-Aug-10 2:06 
JokeRe: Apparent issues with ASP.NET 4.0 and VS 2010 Pin
Eaverae25-Aug-10 2:28
Eaverae25-Aug-10 2:28 
JokeRe: Apparent issues with ASP.NET 4.0 and VS 2010 Pin
Talal Sultan25-Aug-10 3:14
Talal Sultan25-Aug-10 3:14 
GeneralRe: Apparent issues with ASP.NET 4.0 and VS 2010 Pin
Talal Sultan29-Aug-10 19:23
Talal Sultan29-Aug-10 19:23 
GeneralRe: Apparent issues with ASP.NET 4.0 and VS 2010 Pin
Eaverae20-Sep-10 19:57
Eaverae20-Sep-10 19:57 
QuestionHow to fix the error "It is an error to use a section registered as allowDefinition='MachineToApplication' Pin
nilam247723-Aug-10 2:13
nilam247723-Aug-10 2:13 
AnswerRe: How to fix the error "It is an error to use a section registered as allowDefinition='MachineToApplication' Pin
R. Giskard Reventlov23-Aug-10 7:39
R. Giskard Reventlov23-Aug-10 7:39 
QuestionHow to refresh the ASP.Net page after asynchronously updating the contents of page Pin
Paramhans Dubey23-Aug-10 2:13
professionalParamhans Dubey23-Aug-10 2:13 
AnswerRe: How to refresh the ASP.Net page after asynchronously updating the contents of page Pin
Not Active23-Aug-10 4:17
mentorNot Active23-Aug-10 4:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.