Exemple #1
0
        //public SC0_vUserGroup Serialize() {
        //	return new SC0_vUserGroup(Record);
        //}
        #endregion
        #region public SC0_vUserGroup Serialize();
        public SC0_vUserGroup Serialize()
        {
            SO0_vUserGroup[] _serialisableobject;

            lock (record__) {
                int _current = Current;

                _serialisableobject = new SO0_vUserGroup[Count];

                Reset();
                while (Read())
                {
                    _serialisableobject[Current]
                        = new SO0_vUserGroup(
                              parent_ref_.Fields.IDUser,
                              parent_ref_.Fields.Login,
                              parent_ref_.Fields.IDGroup,
                              parent_ref_.Fields.Name,
                              parent_ref_.Fields.Relationdate
                              );
                }

                Current = _current;
            }

            SC0_vUserGroup _serialize_out = new SC0_vUserGroup();

            _serialize_out.SO0_vUserGroup = _serialisableobject;
            return(_serialize_out);
        }
		//public SC0_vUserGroup Serialize() {
		//	return new SC0_vUserGroup(Record);
		//}
		#endregion
		#region public SC0_vUserGroup Serialize();
		public SC0_vUserGroup Serialize() {
			SO0_vUserGroup[] _serialisableobject;

			lock (record__) {
				int _current = Current;

				_serialisableobject = new SO0_vUserGroup[Count];

				Reset();
				while (Read()) {
					_serialisableobject[Current] 
						= new SO0_vUserGroup(
							parent_ref_.Fields.IDUser,
							parent_ref_.Fields.Login,
							parent_ref_.Fields.IDGroup,
							parent_ref_.Fields.Name,
							parent_ref_.Fields.Relationdate
						);
				}

				Current = _current;
			}

			SC0_vUserGroup _serialize_out = new SC0_vUserGroup();
			_serialize_out.SO0_vUserGroup = _serialisableobject;
			return _serialize_out;
		}
		void clrObject() {
			Fields = new SO0_vUserGroup();
		}
		public void Open(SO0_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(true, _datatable);
		}
Exemple #5
0
		public void Deserialize(SO0_vUserGroup vUserGroup_in) {
			mainAggregate.Fields = vUserGroup_in;
		}