Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 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 22nd, 2009, 09:06 AM
Registered User
 
Join Date: Apr 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Implementing Search on business objects in NTier Architecture ?

Hi Imar.

I am using NTier Architecture as you mention in your articles.


My NTier Layers are

-- UI Layer
--- BusinessEntity
--- BusinessManager
--- DataAcess

My CustomerEntity class have 120 attribute's.

Users can peform search on only 6 attribute's (like Fname,Lname-----) .

while perfroming search at UI layer my CustomerManager class returns collection of CustomerEntity .

I am binding only 10 attribute's of search result in gridview.

If search result have more then 100 customer records then it takes few second to populate.

To make search process faster, Should I create a CustomerEntitySearchResult Class with only 10 attributes that are required to display in Gridview.

I am not using DataTable ,DataSet at UI layer.

Please suggest any effective and efficient way to accomplish above task.


 
Old April 22nd, 2009, 03:10 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi David,

Can you please post messages like these in a more general ASP.NET category here at p2p.wrox.com? This category is for my book Beginning ASP.NET 3.5 and off-topic posts makes it more difficult for readers of the book to find what they need.

Anway, I don't think loading indiviual properties is the problem here (unless they contain large pieces of data like blobs). I think the fact you're trying to load so many objects is what's problematic.

If I were you, I'd implement paging E.g. you get the first 10 records and load them in a collection to display on a page. You also get the total number of records which you can then use to present a series of links or buttons to "page" through your data.

Hope this helps,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
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
Many-to-Many relationships and Business Objects. danielpilon C# 6 May 28th, 2008 09:44 PM
Visual Basic .Net Business Objects Source Download LMDSD Forum and Wrox.com Feedback 5 May 20th, 2005 04:24 PM
VB.NET Business Objects AlfredoDS Wrox Book Feedback 1 July 7th, 2003 10:37 AM
VB.NET Business Objects throughput Wrox Book Feedback 1 June 26th, 2003 06:16 AM
Visual Basic .NET Business Objects ofergold All Other Wrox Books 2 June 6th, 2003 08:49 AM





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