« first day (867 days earlier)      last day (4307 days later) » 

Lao
Lao
23:00
So, back to my poorly executed example:
public void Save()
{
var dao = new OrderDAO(this);

if(this.Id > 0) dao.Update();
}
else dao.Insert();
just as a basic example
I'm open to different suggestions, of course. What would be considered the "best" or "cleanest" method of communicating a BO to a DAO?
I think you've expressed a good reason to do it like that, and Ryan Ternier has stated a good reason not to
my answer would probably be something of a cop-out, along the lines of business objects and DAOs should probably have different shapes because they serve different needs, and what you're describing seems like two parallel layers of objects that just proxy one another
put another way, if you have Order and Customer DAOs, I wouldn't assume that you need Order and Customer BOs
SO chat needs to have Skype style emoticons so I can post big beer emoticon art
instead you get that. Happy friday.
Lao
Lao
well, the CustomerBO would have a method like AddOrder(Order) which handles validation an business rules. I wouldn't want to put that in the DAO.
and, in the same breath, I don't want the SQL logic in the CustomerBO. I want it in the CustomerDAO.
what I'm getting at is more along the lines of, a business object should model a business process
a Customer isn't a process, it's just some data
23:09
@Lao, there's no harm returning an object, or subset of that object for what was used populating the data, but it is nice to have a custom response object.
What @TomW Has said is correct. You have a business rule and from that a set of requirements to do what you need to do. Your process (code) is fulfilling those requirements.
If you have an XML message/object that needs to be validated etc, there's no harm in using that to pass it on
IMHO if your presentation is calling stuff like CustomerBusinessObject.Save(), the business object is insufficiently abstract for the needs of the view
however, rather than have your BO and DAO inherit from the same IOrder, why not create a new object that implemnts IOrder and pass that around?
I'm not 100% up to speed, but if your IOrder specifies business logic/functions I would say don't put it in the DAO
Lao
Lao
it doesn't. Just properties.
7 Y U STAR MY MESSAGE
anyone have a non-oem copy of windows 7?
@CCInc I might have obtained something like that in my travels
23:13
could I borrow the PID so I don't have to pay for support from microsoft?
or better yet
how can i disable validation for certain fields in mvc
I need help installing iis
hey what keywords do I use to tell the support rep not to dumb it down
Lao
Lao
@TomW I'm not sure I understand this. If there's a web method titled "AddCustomer", wouldn't it make sense to construct a customer and call a Save method? I mean, I would rather create a factory that would instantiate and save the BO, but that's essentially a simplification of the same thing.
wtf
Ok, in this case, please contact us by phone at 1-800-Microsoft, in order for us to help you with this issue !
can anyone non-microsoft help me puhlease?
@CCInc Do you have a CD? Isi t a real version?
23:21
yes it's a real version
if you phone microsoft just them the truth, or what I tell them when I do my yearly new install "I do an install every year, and you always give me grief about these damn keys. I don't have time to keep doing this.. "ok sir, here you go"
it's just a simple IIS install... nobody? :(
Lao
Lao
How are you trying to install it?
is that what you need help with? Just getting started with it?
Using add/remove features
iis install is simple what is the problem
23:23
at the end of the install it always gives me "not all features were sucessfully changed"
Lao
Lao
That's how I've done it.
then on restart IIS disappears
which win ?
hmm?
oh Win7 HomePremium
23:26
@CCInc For Add Remove Programs - go to "install MS Software" or whatever it's called
you'll see IIS in there
yeah I did and got that error
@OrhanCinar I'll try that thanks
you can look iis.net for more info
holy **** **** I just got Win7 Ultimate free no downloads no malware
WOOT
how?
give me win 8!
win anytime upgrade
23:32
?
windows 7?
windows 9.
lol
DANG IR
EVEN THE WEB INSTALLER DOESNT WORK
Anyone? :(((

« first day (867 days earlier)      last day (4307 days later) »