in

CodeSmith Community

Your Code. Your Way. Faster!

DeepSave usage

Last post 05-09-2008 7:09 AM by blake05. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-05-2008 1:14 AM

    DeepSave usage

     Hello,

     I am begining with NetTiers 2.2 and I either don't understand what is the deesave() function or don't implement it correctly...

    I have an entity to which are linked some collections, and there is an integrty control in between.  for example: a contact is linked whith some trainers.

    If I just request the delete of the entity (contact) then I get an error as relatives tables still have some records.

    So I tryed to DeepLoad the entity, mark all the linked collection elements as delete (MarkToDelete), mark the entity to delete, then call the DeepSave(entity, IncludeChildren)

    This doesn't work, as collection are note deleted from the tables.

     Could someone give me an example how to proceed, or give me the right way to do this.

    Thank's

    Eric 

    Filed under: ,
    • Post Points: 35
  • 05-09-2008 7:09 AM In reply to

    • blake05
    • Top 50 Contributor
    • Joined on 04-03-2008
    • Wisconsin
    • Posts 74
    • Points 1,205

    Re: DeepSave usage

    Answer

    Hello Eric,

    I think the following post is quite similar to what you’re looking for http://community.codesmithtools.com/forums/p/5630/22166.aspx

    Thanks

    -Blake Niemyjski

    Blake Niemyjski
    CodeSmith Tools, LLC
    Support Specialist
    • Post Points: 5
Page 1 of 1 (2 items)
Copyright © 2007 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems