Author: whatispunk | Posted on: 6/24/2008 10:25:11 AM | Views : 315

Is it a good idea to have a web service reference inside a class libarary. The service would be used to facilitate on demand properties.

For example:

There are 3 classes:



ContactList

Contact

ContactField
ContactList contains a generic list of Contact objects. ---- System.Collections.Generic.List<Contact> Contacts;
Contact contains a generic list of ContactField objects ---- System.Collections.Generic.List<ContactField> Fields;

Now lets say we have a page that only displays a particular ContactList's Contacts (and none of the ContactFields). In this situation there is no need to populate Fields for each Contact in the ContactList. So Fields is left as&nbs ...

Go to the complete details ...