Did I get the wrong book?

Did I get the wrong book?

Old forum URL: forums.lhotka.net/forums/t/138.aspx


jlazanowski posted on Thursday, May 18, 2006

I had Expert Business Objects on preorder with Amazon.com. I just recently got around to spending some time with it. I jumped ahead to Chapter 6 and started working with the PTracker application in Chapter 7, and now I am lost.

 

An excerpt from my book

<code>

public class Project : BuisnessBase  <-- no <> here

   ....

 public string Name

{...

   set { if (value == null) value = string.Empty;

           if (_name != value)

            {

               _name = value;

               BrokenRules.Assert("NameLen", Name To Long", (value.Length > 50));

               ..... MarkDirty();

 </code>

In the PTracker Application there are no BrokenRules.Assert commands. Instead they are contained in an overridden AddBuisnessRules method. I checked on the change long between 1.x and 2.x of CSLA.net and one of the changes listed was that BrokenRules.Assert() was gone.... so I am a bit confused. Do I have the wrong book? Anyone else notice this?


Thanks,

Justin

 

Mark replied on Thursday, May 18, 2006

Yep - it looks like you have the book for the 1.x release, not the 2.x release.

DavidDilworth replied on Thursday, May 18, 2006

Check the link at the top of the page (and the title of the forum).  They both refer to the 2005 version of the books.

If your book doesn't say 2005 on it, then you've got the previous edition.

jlazanowski replied on Thursday, May 18, 2006

That should have been the big give away huh? The 2005 missing from the cover. (Beats head against desk)

Thanks. Now I have to get with Amazon to find out what the screwup was. I appreciate the quick response.

 

Justin

Copyright (c) Marimer LLC