//public SC_Permition Serialize() { // return new SC_Permition(Record); //} #endregion #region public SC_Permition Serialize(); public SC_Permition Serialize() { SO_Permition[] _serialisableobject; lock (record__) { int _current = Current; _serialisableobject = new SO_Permition[Count]; Reset(); while (Read()) { _serialisableobject[Current] = new SO_Permition( parent_ref_.fields_.IDPermition, parent_ref_.fields_.Name ); } Current = _current; } SC_Permition _serialize_out = new SC_Permition(); _serialize_out.SO_Permition = _serialisableobject; return _serialize_out; }
void clrObject() { fields_ = new SO_Permition(); }
public void Open(SO_Permition[] 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["IDPermition"] = serialisableobject_in[i].IDPermition; _datarow["Name"] = serialisableobject_in[i].Name; _datatable.Rows.Add(_datarow); } Open(_datatable); }
public void Deserialize(SO_Permition Permition_in) { mainAggregate.Fields = Permition_in; }