Wrox Programmer Forums
|
BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio
This is the forum to discuss the Wrox book ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solution by Vincent Varallo; ISBN: 9780470396865
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio 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 11th, 2010, 01:54 PM
Registered User
 
Join Date: Sep 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Is Page 52 in Error

I am reading Page 52 where a load method is defined for ENTBaseBOList.
But I do not find that code the sample code. Why is it missing? Is this an error?

Here is the code that I find in ENTBaseBOList.... In your sample code... As you can see it doesn't contain the Load method

The code defines only and empty abstract....

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;

namespace V2.PaidTimeOffBLL.Framework
{
[Serializable()]
public abstract class ENTBaseBOList<T> : List<T>
where T : ENTBaseBO, new()
{
#region Abstract Methods
/// <summary>
/// The use must implement a method to load the object from the database.
/// </summary>
public abstract void Load();

#endregion Abstract Methods

#region Methods

public List<T> SortByPropertyName(string propertyName, bool ascending)
{
//Create a Lambda expression to dynamically sort the data.
var param = Expression.Parameter(typeof(T), "N");

var sortExpresseion = Expression.Lambda<Func<T, object>>
(Expression.Convert(Expression.Property(param, propertyName), typeof(object)), param);

if (ascending)
{
return this.AsQueryable<T>().OrderBy<T, object>(sortExpresseion).ToList<T>();
}
else
{
return this.AsQueryable<T>().OrderByDescending<T, object>(sortExpresseion).ToList<T>();
}
}

#endregion Methods

}
}


Please help. Thanks





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 1 Page 52 using VB sammyw BOOK: Professional ADO.NET 3.5 with LINQ and the Entity Framework ISBN: 978-0-470-22988-0 0 March 27th, 2009 12:46 PM
ch.2- cant upload a file no bigger than 52 MB?? cluce BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 5 April 30th, 2008 09:08 AM
Chap. 2 Page 52-53 session anmolnandha BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 2 November 30th, 2006 03:07 PM
Chapter 2 - Page 52, 53 Chudz BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 8 February 19th, 2006 07:09 PM
Ch2 52-54--passing session variables dprice BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 3 September 26th, 2005 07:01 AM





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