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