Exemplo n.º 1
0
		//public SC0_Log Serialize() {
		//	return new SC0_Log(Record);
		//}
		#endregion
		#region public SC0_Log Serialize();
		public SC0_Log Serialize() {
			SO0_Log[] _serialisableobject;

			lock (record__) {
				int _current = Current;

				_serialisableobject = new SO0_Log[Count];

				Reset();
				while (Read()) {
					_serialisableobject[Current] 
						= new SO0_Log(
							parent_ref_.Fields.IDLog,
							parent_ref_.Fields.IDLogcode,
							parent_ref_.Fields.IDUser_posted,
							parent_ref_.Fields.Date_posted,
							parent_ref_.Fields.Logdata
						);
				}

				Current = _current;
			}

			SC0_Log _serialize_out = new SC0_Log();
			_serialize_out.SO0_Log = _serialisableobject;
			return _serialize_out;
		}
Exemplo n.º 2
0
		public void Deserialize(SO0_Log Log_in) {
			mainAggregate.Fields = Log_in;
		}
Exemplo n.º 3
0
		public void Open(SO0_Log[] 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["IDLog"] = serialisableobject_in[i].IDLog;
				_datarow["IDLogcode"] = serialisableobject_in[i].IDLogcode;
				_datarow["IDUser_posted"] = serialisableobject_in[i].IDUser_posted;
				_datarow["Date_posted"] = serialisableobject_in[i].Date_posted;
				_datarow["Logdata"] = serialisableobject_in[i].Logdata;

				_datatable.Rows.Add(_datarow);
			}

			Open(true, _datatable);
		}