'style' or 'preference' question

  • Thread starter Thread starter Steve
  • Start date Start date
S

Steve

If you wanted to get a collection of items from your BusinessObjectLayer, do
you think it would be more intuitive to see something like this:
<code>
public class Customer
{
public static Customer[] GetCustomers();
}
</code>

or use a "Manager class like this:

<code>
public static class BOLManager
{
public static Customer[] GetCustomers();
}
</code>

I'm trying to focus on making my code easy to understand just from the
source and would like to adopt habits and standard that people are used to.

Thanks!
Steve
 
Second case BOLManager. Because BAL manage your objects, not keep them
Just "Customer" is appropriate for DAL.

Steve said:
If you wanted to get a collection of items from your BusinessObjectLayer, do
you think it would be more intuitive to see something like this:
<code>
public class Customer
{
public static Customer[] GetCustomers();
}
</code>

or use a "Manager class like this:

<code>
public static class BOLManager
{
public static Customer[] GetCustomers();
}
</code>

I'm trying to focus on making my code easy to understand just from the
source and would like to adopt habits and standard that people are used to.

--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top