//public SC0_UserGroup Serialize() { // return new SC0_UserGroup(Record); //} #endregion #region public SC0_UserGroup Serialize(); public SC0_UserGroup Serialize() { SO0_UserGroup[] _serialisableobject; lock (record__) { int _current = Current; _serialisableobject = new SO0_UserGroup[Count]; Reset(); while (Read()) { _serialisableobject[Current] = new SO0_UserGroup( parent_ref_.Fields.IDUser, parent_ref_.Fields.IDGroup, parent_ref_.Fields.Relationdate, parent_ref_.Fields.Defaultrelation ); } Current = _current; } SC0_UserGroup _serialize_out = new SC0_UserGroup(); _serialize_out.SO0_UserGroup = _serialisableobject; return(_serialize_out); }
//public SC0_UserGroup Serialize() { // return new SC0_UserGroup(Record); //} #endregion #region public SC0_UserGroup Serialize(); public SC0_UserGroup Serialize() { SO0_UserGroup[] _serialisableobject; lock (record__) { int _current = Current; _serialisableobject = new SO0_UserGroup[Count]; Reset(); while (Read()) { _serialisableobject[Current] = new SO0_UserGroup( parent_ref_.Fields.IDUser, parent_ref_.Fields.IDGroup, parent_ref_.Fields.Relationdate, parent_ref_.Fields.Defaultrelation ); } Current = _current; } SC0_UserGroup _serialize_out = new SC0_UserGroup(); _serialize_out.SO0_UserGroup = _serialisableobject; return _serialize_out; }
public void Deserialize(SO0_UserGroup UserGroup_in) { mainAggregate.Fields = UserGroup_in; }
public void Open(SO0_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(true, _datatable); }
void clrObject() { Fields = new SO0_UserGroup(); }