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