Example #1
0
        //public SC0_Language Serialize() {
        //	return new SC0_Language(Record);
        //}
        #endregion
        #region public SC0_Language Serialize();
        public SC0_Language Serialize()
        {
            SO0_Language[] _serialisableobject;

            lock (record__) {
                int _current = Current;

                _serialisableobject = new SO0_Language[Count];

                Reset();
                while (Read())
                {
                    _serialisableobject[Current]
                        = new SO0_Language(
                              parent_ref_.Fields.IDLanguage,
                              parent_ref_.Fields.IDWord_name
                              );
                }

                Current = _current;
            }

            SC0_Language _serialize_out = new SC0_Language();

            _serialize_out.SO0_Language = _serialisableobject;
            return(_serialize_out);
        }
		//public SC0_Language Serialize() {
		//	return new SC0_Language(Record);
		//}
		#endregion
		#region public SC0_Language Serialize();
		public SC0_Language Serialize() {
			SO0_Language[] _serialisableobject;

			lock (record__) {
				int _current = Current;

				_serialisableobject = new SO0_Language[Count];

				Reset();
				while (Read()) {
					_serialisableobject[Current] 
						= new SO0_Language(
							parent_ref_.Fields.IDLanguage,
							parent_ref_.Fields.IDWord_name
						);
				}

				Current = _current;
			}

			SC0_Language _serialize_out = new SC0_Language();
			_serialize_out.SO0_Language = _serialisableobject;
			return _serialize_out;
		}
		public void Open(SO0_Language[] 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["IDLanguage"] = serialisableobject_in[i].IDLanguage;
				_datarow["IDWord_name"] = serialisableobject_in[i].IDWord_name;

				_datatable.Rows.Add(_datarow);
			}

			Open(true, _datatable);
		}
		void clrObject() {
			Fields = new SO0_Language();
		}
		public void Deserialize(SO0_Language Language_in) {
			mainAggregate.Fields = Language_in;
		}