A few recommendations here.
1.) I would change your structure a bit and create an "Author" class, to hold the AuthorId, FirstName, and Last Name value
2.) I would then change your BookInfo object to have a "List<Of AuthorInfo>" for the authors.
What you can then do is in your iHyrdratable method, you can call out to the database, and fill the list of authors using the same methods.
__________________
Mitchel Sellers
Microsoft C# MVP, MCITP
Director of Development
IowaComputerGurus Inc.
My blog for .NET and DotNetNuke info
Author of "Professional DotNetNuke Module Programming"
Tech Editor on "Visual Studio 2010 six-in-one" and "Pro C# 4.0"
|