The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

esEntityCollection.Save

Last post 10-07-2008, 12:15 AM by toreandreb. 2 replies.
Sort Posts: Previous Next
  •  03-27-2008, 9:35 AM 8588

    esEntityCollection.Save

      Hi,

         When the method esEntityCollection.Save is called, my override method EntityBase.Save is not called. I expected EntityBase.Save to be called for each Entity in the Collection. Is this the expected behavior or something is wrong in my code?

  •  03-27-2008, 3:04 PM 8591 in reply to 8588

    Re: esEntityCollection.Save

    Actually, since the data is sitting in a DataTable the Entities aren't used to save while contained inside of a collection. There are certain cases however when we do call Save on entities in a collection, that is, when we detect that they have hierarchical sub -objects that themsevles must be saved. Let me think on this tonight ....

    EntitySpaces | Twitter | BLOG | Please honor our Software License
  •  10-07-2008, 12:15 AM 11807 in reply to 8591

    Re: esEntityCollection.Save

    Mike,

    did you get a chance to think about this issue? I am wondering about the same thing. I have a grid, which is bound to a es collection, where the users can add, update and delete rows. When the user chooses to save, I want the inserts and updates to be handled by the collection, but I would like to intercept the delete so that I can call my own customized stored proc for each entity to delete.

    regards

    Tore Andre

View as RSS news feed in XML