Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it normal practice?
Message
De
21/02/2008 14:09:44
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
21/02/2008 11:56:29
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01294820
Message ID:
01294916
Vues:
15
Hi Sam,

>I have an SQL table that has close to 100 columns. Some users need to reference all columns, but other users need to only reference a few columns in that table.
>
>Is it normal practice in MM .NET v2.4 to create multiple business objects and business entities and stored procedures for the same table so that only the columns needed by each user are referenced, or is it better to only use one set of objects that use all columns but only display the columns needed in the user interface?
>
>It looks like either approach will work, but dealing with 100 columns when only a few columns are needed seems like a waste of resources, but creating and keeping track of multiple business objects, business entities, and stored procedures is no piece of cake either.
>
>Suggestions?
>
Just my thoughts. How many rows would you typically be retrieving in either case? If the data is lots of rows with lots of columns, then I would probably consider making seperate business objects. If there is only two cases you are talking about, then it wouldn't be that difficult to instanitate the business object based on the user case.

Cheers
Tim
Timothy Bryan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform