Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Separation of Biz and Data Layer question
Message
De
03/02/2007 22:27:36
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
À
02/02/2007 09:53:20
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB.NET 1.1
Divers
Thread ID:
01191769
Message ID:
01192176
Vues:
13
>We pass around DataSets, some developers pass around Biz objects.

Hey Bonnie,
So, for example, if you were passing a collection of employees from your data layer back to your UI to, let's say, populate a datagrid, would these be the steps you follow (it's Saturday night, and my mind doesn't work very well on the weekend, so sorry if I say something that doesn't make much sense...)

-Populate your strongly typed dataset in your data layer in a shared function that returns your strongly typed dataset type.
-In your biz class, have a member with a type of your st dataset which gets loaded from a method.
-In your biz class, have a property of your st dataset that the UI refers to?

Sorry about the basic questions. I have been working with custom collections and was really starting to "get" that, but then I wanted to bind my collection to a datagrid and became frustrated at how complicated it seemed.
Very fitting: http://xkcd.com/386/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform