Hi Christopher, >How can you update a data record (or set of records) without passing in the changed information as parameters?
I can do it calling the Author.Updade() instance method (the changed information is in the Author internal state). The ObjectDataSource class in ASP.NET 2.0 serve as DataSource to bind a business entity with an ASP.NET 2.0 control like GridView. So I supposed that I could bind my 'Author' business entity to the GridView using ObjectDataSource but I cannot do it: I had to write a wrapper (this is the adapter pattern) between 'Author' and the ObjectDataSource. Since it's quite common to have an Update() method in a business entity I was supposed that it should be natural to use the ObjectDataSource with the Update() method without the need o a wrapper/adapter. But it wasn't so. Am I missing something or ObjectDataSource design is poor? Ciao (luKa) http://nullabletypes.sf.net/ http://dev.luca.minudel.it/ http://www.luca.minudel.it/eng/ On Thu, 7 Jul 2005 08:40:29 -0500, Christopher Reed <[EMAIL PROTECTED]> wrote: >How can you update a data record (or set of records) without passing in the changed information as parameters? > >Christopher Reed >Web Applications Supervisor >Information Technology >City of Lubbock >[EMAIL PROTECTED] >"The oxen are slow, but the earth is patient." > =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com
