B.3 diffgr Namespace

B.3 diffgr Namespace

The diffgr namespace contains XML attributes used to mark up a DiffGram document with versioning information. Here's how the diffgr namespace is imported in a DiffGram document:

 <xs:schema id="DataSetName" xmlns=""      xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"     xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1"     xmlns:xsd="http://www.w3.org/2001/XMLSchema" > 

The diffgr namespace includes several attributes that can be applied to row elements, as described in Table B-9. The values hasChanges can take on are listed in Table B-10.

Table B-9. diffgr row attributes




Uniquely identifies a row. This pairs the elements in the <diffgr:before> and <diffgr:errors> sections to the current data. This value is generated using the table name and row identifier (for example, diffgr:id="Customers1" ).


Used with relationships. Identifies the element that's the parent for the current row, using the parent's diffgr:id attribute.


Flags a row, identifying that is has been modified. This attribute is used only in the <DataInstance> section and can take one of the three values described in Table B-10.


If set to true , the row is flagged as having an error (which is described in the <diffgr:errors> section).


Contains the text of the DataRow.RowError property. This is used only in the <diffgr:errors> section.

Table B-10. Values for hasChanges




Represents a newly added row.


Represents a row in which at least some data has changed from the data in the <diffgr:before> section. This doesn't include the deleted row, which appears in the <diffgr:before> section but nowhere else.


Identifies an element in which one or more children from a parent-child relationship have been modified.

ADO. NET in a Nutshell
ADO.NET in a Nutshell
ISBN: 0596003617
EAN: 2147483647
Year: 2005
Pages: 415

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net