471,334 Members | 1,398 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,334 software developers and data experts.

'style' or 'preference' question

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
Feb 16 '06 #1
1 1079
Second case BOLManager. Because BAL manage your objects, not keep them
Just "Customer" is appropriate for DAL.

"Steve" wrote:
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

Feb 17 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Mark C | last post: by
54 posts views Thread by Sander | last post: by
83 posts views Thread by rahul8143 | last post: by
18 posts views Thread by pocmatos | last post: by
2 posts views Thread by Brian | last post: by
86 posts views Thread by PTY | last post: by
12 posts views Thread by Matt B | last post: by
2 posts views Thread by Just_a_fan | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.