Hi there,
One of the goals of the book is to show different ways to accomplish things. While generic classes are extremely useful in most scenarios, there are also situations where it makes sense to create your own collection class. This is shown with the ContactCollection class. However, the code would have worked equally well with a List (Of Contact) generics list or another generic collection.
With regards to the procedure, I think it's a bug. I didn't write that chapter, so I am not 100% sure about the reasoning behind the code, but as far as I can tell, you can drop the OUTPUT param. E.g. the following (untested) should work as well:
SPROC
@EntryText NVARCHAR(2000)<s>,
@NewDiaryEntryId BIGINT = -1 OUTPUT</s>
)
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of
ASP.NET 2.0 Instant Results and
Beginning Dreamweaver MX / MX 2004