Information générale
Catégorie:
Conception classe
Titre:
What type of return to use between layers
Versions des environnements
My business object (BO) need to pass a table to the GUI. The BO and the GUI will reside on the same computer and will not use .NET remoting or web service for now, but will need to support .NET remoting and a web interface in the future. What return type should I use?
DataSet
DataTable
XML
With the first 2 options, does .NET do the plumbing of transfering the table in XML format between the layers or it simply pass the object?
With the XML option, do you define the return type as string? How do you return the XML with the XSD?
TIA
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement