Пример #1
0
        public void WriteObjectData(LibSerializationInfo info)
        {
            info.WriteString(this.RelSource);
            info.WriteInt32(this.TableIndex);
            info.WriteString(this.RelPK);
            info.WriteBoolean(this.IsCheckSource);
            info.WriteInt32(this.GroupIndex);
            info.WriteString(this.GroupCondation);
            int count = this.RelFields.Count;

            info.WriteInt32(count);
            for (int i = 0; i < count; i++)
            {
                info.WriteObject(this.RelFields[i]);
            }
            count = this.SetValueFields.Count;
            info.WriteInt32(count);
            for (int i = 0; i < count; i++)
            {
                info.WriteObject(this.SetValueFields[i]);
            }
            count = this.SelConditions.Count;
            info.WriteInt32(count);
            for (int i = 0; i < count; i++)
            {
                info.WriteObject(this.SelConditions[i]);
            }
        }
Пример #2
0
        public void WriteObjectData(LibSerializationInfo info)
        {
            info.WriteString(this.ColumnName);
            info.WriteInt32(this.MaxLength);
            FieldType fieldType = FieldType.None;

            if (this.ExtendedProperties.ContainsKey(FieldProperty.FieldType))
            {
                fieldType = (FieldType)this.ExtendedProperties[FieldProperty.FieldType];
            }
            info.WriteInt32((int)fieldType);
            info.WriteInt32((int)this.ExtendedProperties[FieldProperty.DataType]);
            RelativeSourceCollection relColl = this.ExtendedProperties[FieldProperty.RelativeSource] as RelativeSourceCollection;

            if (relColl != null)
            {
                info.WriteInt32(relColl.Count);
                for (int i = 0; i < relColl.Count; i++)
                {
                    info.WriteObject(relColl[i]);
                }
            }
            else
            {
                info.WriteInt32(0);
            }
        }
Пример #3
0
        public void WriteObjectData(LibSerializationInfo info)
        {
            info.WriteInt64(this.Version);
            int count = this.RelationDlls.Count;

            info.WriteInt32(count);
            foreach (KeyValuePair <string, ProgIdRelationDll> item in this.RelationDlls)
            {
                info.WriteString(item.Key);
                info.WriteObject(item.Value);
            }
            count = this.DllVersions.Count;
            info.WriteInt32(count);
            foreach (KeyValuePair <string, long> item in this.DllVersions)
            {
                info.WriteString(item.Key);
                info.WriteInt64(item.Value);
            }
            count = this.VclMap.Count;
            info.WriteInt32(count);
            foreach (KeyValuePair <string, string> item in this.VclMap)
            {
                info.WriteString(item.Key);
                info.WriteString(item.Value);
            }
            count = this.ViewMap.Count;
            info.WriteInt32(count);
            foreach (KeyValuePair <string, string> item in this.ViewMap)
            {
                info.WriteString(item.Key);
                info.WriteString(item.Value);
            }
        }
Пример #4
0
        public void WriteObjectData(LibSerializationInfo info)
        {
            int count = this._GridFields.Count;

            info.WriteInt32(count);
            for (int i = 0; i < count; i++)
            {
                info.WriteObject(this._GridFields[i]);
            }
        }
Пример #5
0
        public void WriteObjectData(LibSerializationInfo info)
        {
            int count = this.Tables.Count;

            info.WriteInt32(count);
            for (int i = 0; i < count; i++)
            {
                info.WriteObject((LibSqlModelTable)this.Tables[i]);
            }
        }
Пример #6
0
        public void WriteObjectData(LibSerializationInfo info)
        {
            info.WriteString(this._Header);
            if (this._Field == null)
            {
                info.WriteBoolean(false);
            }
            else
            {
                info.WriteBoolean(true);
                info.WriteObject(this._Field);
            }
            int count = this._BandFields == null ? 0 : this._BandFields.Count;

            info.WriteInt32(count);
            for (int i = 0; i < count; i++)
            {
                info.WriteObject(this._BandFields[i]);
            }
        }
Пример #7
0
        public void WriteObjectData(LibSerializationInfo info)
        {
            info.WriteString(this._ProgId);
            int count = this._GridScheme.Count;

            info.WriteInt32(count);
            foreach (KeyValuePair <int, LibGridScheme> item in this._GridScheme)
            {
                info.WriteInt32(item.Key);
                info.WriteObject(item.Value);
            }
        }
Пример #8
0
        public void WriteObjectData(LibSerializationInfo info)
        {
            info.WriteString(this.TableName);
            Dictionary <string, FieldAddr> fieldAddrDic = this.ExtendedProperties[TableProperty.FieldAddrDic] as Dictionary <string, FieldAddr>;

            if (fieldAddrDic == null)
            {
                info.WriteInt32(0);
            }
            else
            {
                info.WriteInt32(fieldAddrDic.Count);
                foreach (var item in fieldAddrDic)
                {
                    info.WriteString(item.Key);
                    info.WriteObject(item.Value);
                }
            }
            bool isVirtual = false;

            if (this.ExtendedProperties.ContainsKey(TableProperty.IsVirtual))
            {
                isVirtual = (bool)this.ExtendedProperties[TableProperty.IsVirtual];
            }
            info.WriteBoolean(isVirtual);
            int count = this.Columns.Count;

            info.WriteInt32(count);
            for (int i = 0; i < count; i++)
            {
                info.WriteObject((LibSqlModelColumn)this.Columns[i]);
            }
            count = this.PrimaryKey.Length;
            info.WriteInt32(count);
            for (int i = 0; i < count; i++)
            {
                info.WriteString(this.PrimaryKey[i].ColumnName);
            }
        }