Example #1
0
        public void ReadObjectData(LibSerializationInfo info)
        {
            this.TableName = info.ReadString();
            int count = info.ReadInt32();
            Dictionary <string, FieldAddr> fieldAddrDic = new Dictionary <string, FieldAddr>(count);

            for (int i = 0; i < count; i++)
            {
                fieldAddrDic.Add(info.ReadString(), (FieldAddr)info.ReadObject());
            }
            if (fieldAddrDic != null)
            {
                this.ExtendedProperties.Add(TableProperty.FieldAddrDic, fieldAddrDic);
            }
            if (info.ReadBoolean())
            {
                this.ExtendedProperties.Add(TableProperty.IsVirtual, true);
            }
            count = info.ReadInt32();
            for (int i = 0; i < count; i++)
            {
                this.Columns.Add((DataColumn)info.ReadObject());
            }
            count = info.ReadInt32();
            DataColumn[] pks = new DataColumn[count];
            for (int i = 0; i < count; i++)
            {
                pks[i] = this.Columns[info.ReadString()];
            }
            this.PrimaryKey = pks;
        }
Example #2
0
        public void ReadObjectData(LibSerializationInfo info)
        {
            this.RelSource      = info.ReadString();
            this.TableIndex     = info.ReadInt32();
            this.RelPK          = info.ReadString();
            this.IsCheckSource  = info.ReadBoolean();
            this.GroupIndex     = info.ReadInt32();
            this.GroupCondation = info.ReadString();
            int count = info.ReadInt32();

            for (int i = 0; i < count; i++)
            {
                this.RelFields.Add((RelField)info.ReadObject());
            }
            count = info.ReadInt32();
            for (int i = 0; i < count; i++)
            {
                this.SetValueFields.Add((SetValueField)info.ReadObject());
            }
            count = info.ReadInt32();
            for (int i = 0; i < count; i++)
            {
                this.SelConditions.Add((SelCondition)info.ReadObject());
            }
        }
Example #3
0
        public void ReadObjectData(LibSerializationInfo info)
        {
            this._Header = info.ReadString();
            bool hasValue = info.ReadBoolean();

            if (hasValue)
            {
                this._Field = info.ReadObject() as LibGridFieldScheme;
            }
            int count = info.ReadInt32();

            if (count > 0)
            {
                _BandFields = new List <LibGridBandFieldScheme>(count);
                for (int i = 0; i < count; i++)
                {
                    _BandFields.Add((LibGridBandFieldScheme)info.ReadObject());
                }
            }
        }