示例#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);
        }
示例#2
0
 public void Deserialize(SO_WordLanguage WordLanguage_in)
 {
     mainAggregate.Fields = WordLanguage_in;
 }