Пример #1
0
		//public SC_Log Serialize() {
		//	return new SC_Log(Record);
		//}
		#endregion
		#region public SC_Log Serialize();
		public SC_Log Serialize() {
			SO_Log[] _serialisableobject;

			lock (record__) {
				int _current = Current;

				_serialisableobject = new SO_Log[Count];

				Reset();
				while (Read()) {
					_serialisableobject[Current] 
						= new SO_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;
			}

			SC_Log _serialize_out = new SC_Log();
			_serialize_out.SO_Log = _serialisableobject;
			return _serialize_out;
		}
Пример #2
0
		void clrObject() {
			fields_ = new SO_Log();
		}
Пример #3
0
		public void Deserialize(SO_Log Log_in) {
			mainAggregate.Fields = Log_in;
		}
Пример #4
0
		public void Open(SO_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(_datatable);
		}