//public SC_Group Serialize() { // return new SC_Group(Record); //} #endregion #region public SC_Group Serialize(); public SC_Group Serialize() { SO_Group[] _serialisableobject; lock (record__) { int _current = Current; _serialisableobject = new SO_Group[Count]; Reset(); while (Read()) { _serialisableobject[Current] = new SO_Group( parent_ref_.fields_.IDGroup, parent_ref_.fields_.Name ); } Current = _current; } SC_Group _serialize_out = new SC_Group(); _serialize_out.SO_Group = _serialisableobject; return _serialize_out; }
public void Deserialize(SO_Group Group_in) { mainAggregate.Fields = Group_in; }
void clrObject() { fields_ = new SO_Group(); }
public void Open(SO_Group[] serialisableobject_in) { DataTable _datatable = new DataTable(); _datatable.Columns.Add(new DataColumn("codProfissao", typeof(int))); _datatable.Columns.Add(new DataColumn("descProfissao", typeof(string))); DataRow _datarow; for (int i = 0; i < serialisableobject_in.Length; i++) { _datarow = _datatable.NewRow(); _datarow["IDGroup"] = serialisableobject_in[i].IDGroup; _datarow["Name"] = serialisableobject_in[i].Name; _datatable.Rows.Add(_datarow); } Open(_datatable); }