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