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