rated by 0 users
This post has 3 Replies | 2 Followers

Top 10 Contributor
Male
Posts 33
Md. Elias Hossain Posted: 01-03-2010 6:32 AM

The use of DiffGram in ADO.NET

A DiffGram is an XML document that contains all of the data from DataSet object, includeing the orginal DataRow object information.

To save as a DiffGram, use the XmlWriteMode.DiffGram enumeration value as bellows:

DataSet objDSet = new DataSet();
objDataAdapter.Fill(objDSet);
// data manupulation code of the dataset/datatable object
objDSet.WriteXml(Server.MapPath("dXml.xml"), XmlWriteMode.DiffGram);

The DiffGram contains all of the DataRowVersion information in the XML document.

The Diffgram is mostly used in the environment where a user occasionally connects to a database to synchronize a disconnected DataSet object with the current information.

 

Thanks

Md. Elias Hossain
MCP, MCTS(WEB)
Software Engineer

Top 10 Contributor
Male
Posts 123

"The Diffgram is mostly used in the environment where a user occasionally connects to a database to synchronize a disconnected DataSet"

If you have time can you please give us a sample demo/code or describe how it can be done generally? That will be so kind of you.

Thanks

"Excuse if any gaffe."

Md Nazmul Ahsan
Programmer (.NET Framework)
CIS, IADCS & DIT

Top 10 Contributor
Male
Posts 33

Hello Mr. Nazmul,
    First of all I'm so sorry for late as I'm passing a busy and awful time. Yet I like to share with anybody anything.

    Also thanks a lot to you for asking real time sample. I've attached the file to my share file, you can see following the links bellow:

At My Files:
http://msdnbangladesh.net/members/dotnetmaestro/default.aspx  
(at right-bottom side)

Direct Download:
http://msdnbangladesh.net/cfs-file.ashx/__key/CommunityServer.Components.UserFiles/00.00.00.23.08/DiffGramTest_2D002D00_01_2D002D00_05_2D002D00_2010.zip

 

Md. Elias Hossain
MCP, MCTS(WEB)
Software Engineer

Top 10 Contributor
Male
Posts 123

Thanks Elias vi for share this real time sample. Hope this can be help other to develop disconnected database sync. application.

"Excuse if any gaffe."

Md Nazmul Ahsan
Programmer (.NET Framework)
CIS, IADCS & DIT

Page 1 of 1 (4 items) | RSS