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