Esempio n. 1
0
		//public SC_Logcode Serialize() {
		//	return new SC_Logcode(Record);
		//}
		#endregion
		#region public SC_Logcode Serialize();
		public SC_Logcode Serialize() {
			SO_Logcode[] _serialisableobject;

			lock (record__) {
				int _current = Current;

				_serialisableobject = new SO_Logcode[Count];

				Reset();
				while (Read()) {
					_serialisableobject[Current] 
						= new SO_Logcode(
							parent_ref_.fields_.IDLogcode,
							parent_ref_.fields_.Warning,
							parent_ref_.fields_.Error,
							parent_ref_.fields_.Code,
							parent_ref_.fields_.Description
						);
				}

				Current = _current;
			}

			SC_Logcode _serialize_out = new SC_Logcode();
			_serialize_out.SO_Logcode = _serialisableobject;
			return _serialize_out;
		}
Esempio n. 2
0
		public void Deserialize(SO_Logcode Logcode_in) {
			mainAggregate.Fields = Logcode_in;
		}
Esempio n. 3
0
		void clrObject() {
			fields_ = new SO_Logcode();
		}
Esempio n. 4
0
		public void Open(SO_Logcode[] 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["IDLogcode"] = serialisableobject_in[i].IDLogcode;
				_datarow["Warning"] = serialisableobject_in[i].Warning;
				_datarow["Error"] = serialisableobject_in[i].Error;
				_datarow["Code"] = serialisableobject_in[i].Code;
				_datarow["Description"] = serialisableobject_in[i].Description;

				_datatable.Rows.Add(_datarow);
			}

			Open(_datatable);
		}