View unanswered posts | View active topics It is currently Fri Sep 10, 2010 12:19 am



Post new topic Reply to topic  [ 2 posts ] 
 Why doesn't the create method return a DTO? 
Author Message

Joined: Wed May 13, 2009 12:28 pm
Posts: 3
Post Why doesn't the create method return a DTO?
Why doesn't the create method return a DTO instead of just returning the id? Seems like that requires you to do explicitly do a read if you want the data for the object you just created.


Sun May 17, 2009 11:04 pm
Profile

Joined: Sun May 17, 2009 8:54 pm
Posts: 4
Post Re: Why doesn't the create method return a DTO?
In a high-performance situation (ex. large volume of creates) it's more efficient to allow the user to explicitly fetch the object values from the database via a read request, if those values are required. If the create always returned a DTO, it would in some cases suffer an undue performance hit.


Mon Jul 06, 2009 7:31 pm
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group. Theme based on design by Vjacheslav Trushkin.