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

			lock (record__) {
				int _current = Current;

				_serialisableobject = new SO_WordLanguage[Count];

				Reset();
				while (Read()) {
					_serialisableobject[Current] 
						= new SO_WordLanguage(
							parent_ref_.fields_.IDWord,
							parent_ref_.fields_.IDLanguage,
							parent_ref_.fields_.Translation
						);
				}

				Current = _current;
			}

			SC_WordLanguage _serialize_out = new SC_WordLanguage();
			_serialize_out.SO_WordLanguage = _serialisableobject;
			return _serialize_out;
		}
Esempio n. 2
0
		public void Deserialize(SO_WordLanguage WordLanguage_in) {
			mainAggregate.Fields = WordLanguage_in;
		}
Esempio n. 3
0
		public void Open(SO_WordLanguage[] 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["IDWord"] = serialisableobject_in[i].IDWord;
				_datarow["IDLanguage"] = serialisableobject_in[i].IDLanguage;
				_datarow["Translation"] = serialisableobject_in[i].Translation;

				_datatable.Rows.Add(_datarow);
			}

			Open(_datatable);
		}
Esempio n. 4
0
		void clrObject() {
			fields_ = new SO_WordLanguage();
		}