Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Separation of Biz and Data Layer question
Message
From
02/02/2007 11:13:29
 
 
To
02/02/2007 09:43:47
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB.NET 1.1
Miscellaneous
Thread ID:
01191769
Message ID:
01191817
Views:
9
Hi Mike,

We're pretty new at this too. We pass datasets between layers. Our data classes are pretty simple. They get data, and store data. Our text file import routines are in our Biz classes. Seems to work ok so far.

Bruce

>I am still trying to get used to separation of the Biz and Data layers. Here is my situation right now that I am struggling with. I think I am overthinking the problem...
>
>I have a custom collection that I was loading from a text file. I had the load routine right in the collection class. I decided that the load from the .txt file should be in the data class, so I am attempting to convert in an efficient manner.
>
>What should I return from the data class? Should I return an instance of my collection? I guess I am thinking that I don't want to couple my biz and data layer so tightly.
>
>Should I just return the contents of the text file in a string, and then parse that string in the biz layer?
>
>Should I return a dataset, only to load that to my custom collection? That seems a bit redundant.
>
>Should I leave the file loading procedure in the biz layer? I guess I am assuming since it is accessing data, it belongs in the data layer.
>
>Any advice would be greatly appreciated!!!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform