EasyObjects.NET Programmers Reference

EasyObject.Deserialize Method 

Reload an EasyObject from a previous call to Serialize.

public virtual void Deserialize(
   string xml
);

Parameters

xml
The string containing the XML to reload

Example

VB.NET

Dim emps As New Employees
emps.Query.Load()              ' emps.RowCount = 200
emps.FirstName = "Noonan"      ' Change first row
emps.GetChanges()              ' emps.RowCount now = 1 
Dim xml As String = emps.Serialize()

' Now reload that single record into a new Employees object and Save it
Dim empsClone As New Employees
empsClone.Deserialize(xml)
empsClone.Save()
C#
Employees emps = new Employees();
emps.LoadAll();                // emps.RowCount = 200
emps.LastName = "Noonan";      // Change first row
emps.GetChanges();             // emps.RowCount now = 1 
string str = emps.Serialize();

// Now reload that single record into a new Employees object and Save it
Employees empsClone = new Employees();
empsClone.Deserialize(str);
empsClone.Save();

See Also

EasyObject Class | NCI.EasyObjects Namespace