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

            lock (record__) {
                int _current = Current;

                _serialisableobject = new SO0_Word[Count];

                Reset();
                while (Read())
                {
                    _serialisableobject[Current]
                        = new SO0_Word(
                              parent_ref_.Fields.IDWord,
                              parent_ref_.Fields.DeleteThisTestField
                              );
                }

                Current = _current;
            }

            SC0_Word _serialize_out = new SC0_Word();

            _serialize_out.SO0_Word = _serialisableobject;
            return(_serialize_out);
        }
Пример #2
0
		//public SC0_Word Serialize() {
		//	return new SC0_Word(Record);
		//}
		#endregion
		#region public SC0_Word Serialize();
		public SC0_Word Serialize() {
			SO0_Word[] _serialisableobject;

			lock (record__) {
				int _current = Current;

				_serialisableobject = new SO0_Word[Count];

				Reset();
				while (Read()) {
					_serialisableobject[Current] 
						= new SO0_Word(
							parent_ref_.Fields.IDWord,
							parent_ref_.Fields.DeleteThisTestField
						);
				}

				Current = _current;
			}

			SC0_Word _serialize_out = new SC0_Word();
			_serialize_out.SO0_Word = _serialisableobject;
			return _serialize_out;
		}
Пример #3
0
		public void Deserialize(SO0_Word Word_in) {
			mainAggregate.Fields = Word_in;
		}
Пример #4
0
		void clrObject() {
			Fields = new SO0_Word();
		}
Пример #5
0
		public void Open(SO0_Word[] 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["DeleteThisTestField"] = serialisableobject_in[i].DeleteThisTestField;

				_datatable.Rows.Add(_datarow);
			}

			Open(true, _datatable);
		}