SubSonic Forums
All Your Database Are Belong To Us

Generate QueryCommand from RepositoryRecord

Latest post 07-20-2008 10:44 AM by hardball551. 0 replies.
  • 07-20-2008 10:44 AM

    Generate QueryCommand from RepositoryRecord

    Hi

     

    I am porting an app written with the ActiveRecord pattern to Repository pattern (Pakala 2.1).

    The old app used, for example, Order.GetUpdateCommand()... to generate a QueryCommand that can be used in Transactions.

    however, with the Repository, I cannot seem to find a way to do this.

    Once I made changes to an Order object, how can I generate a QueryCommand (an Update, Insert, etc.) out of that "dumb" object (that implements RepositoryRecord<T>)???Is there a way?

     

    Thanks!

Page 1 of 1 (1 items) | RSS