<html> <head> <META http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Deleted Objects Replication</title> <link rel="stylesheet" type="text/css" href="../../../style.css"> </head> <body> <div class="CommonContent"> <div class="CommonContentArea"> <h1>Deleted Objects Replication</h1> <p>In addition to replicating changed/new objects, dRS is able to replicate deletions of objects. When an object is deleted since last replication in one database and you would like to replicate these changes to another database you can use the following method to do this:</p> <p><span name="cs_wiki_filter" csw_filters="vb"></p> <p>VB: </p> <p><code>replication .ReplicateDeletions(GetType(Car))</code></p> <p></span> </p> <p> dRS traverses every Car object in both providers. For instance, if a deletion is found in one provider, the deletion will be replicated to the other provider. During the traversal replication events will be generated and can be used as usual. By default, in a case of a conflict the deletion will prevail. You can choose the counterpart of the deleted object to prevail using the event.</p> <p>Note, that the deletions of a Parent will not be cascaded to child objects. For example, if a Car contains a child object, e.g. Pilot, Pilot will not be traversed and the deletions of Pilot will not be replicated.<br></p> </div> </div> <div id="footer"> This revision (3) was last Modified 2007-07-09T08:31:56 by Tetyana. </div> </body> </html>