Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution 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 October 10th, 2004, 06:03 PM
Authorized User
 
Join Date: Mar 2004
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default Diff. between GetDetails & GetDetailsRow

In the News Management module, in the Data Tier there's these two methods:
NewsManager.Business.News.GetDetails(intNewsID)
and
NewsManager.Business.News.GetDetailsRow(intNewsID)

They both return a news item, but the first method returns it as a NewsDetails class, and the 2nd returns a DataRow.

What is the purpose of having both methods? Only one is used in the code, I forget which one.


 
Old October 10th, 2004, 09:57 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

They probably changed their mind on how it should work. There's a number of things like this - you can see that the design was evolving even at the last minute.

My preference is to use a class over a row. You want to avoid breaking anything if you decide to add a new column later. By using a custom class you can isolate changes better.

Eric





Similar Threads
Thread Thread Starter Forum Replies Last Post
Diff between C & C# yukijocelyn C# 4 November 27th, 2007 06:16 AM
diff b/w javascript validation & server side valid ashu VS.NET 2002/2003 1 March 27th, 2007 09:30 AM
Diff between Recordset.update & insert cmd mp3pm VB Databases Basics 6 September 1st, 2006 03:54 PM
Javascript && keeps turnig into && ayrton Pro VB.NET 2002/2003 3 June 27th, 2005 03:34 PM
Linux & KDE & C++ & QT & MYSQL & Kdevelop Munnnki Linux 0 January 2nd, 2005 05:41 PM





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