Example #1
0
        }         // ctor

        /// <summary></summary>
        /// <param name="dataset"></param>
        /// <param name="tableName"></param>
        /// <param name="xTable"></param>
        public PpsDataTableServerDefinition(PpsDataSetServerDefinition dataset, string tableName, XElement xTable)
            : base(dataset, tableName)
        {
            foreach (var c in xTable.Elements())
            {
                if (c.Name == xnColumn)
                {
                    AddColumn(PpsDataColumnServerDefinition.Create(this, false, c));
                }
                else if (c.Name == xnRelation)
                {
                    AddColumn(PpsDataColumnServerDefinition.Create(this, true, c));
                }
                else if (c.Name == xnMeta)
                {
                    metaInfo.Add(c);
                }
                //else
                //	throw new InvalidCo
            }
        }         // ctor
Example #2
0
        private PpsDataColumnServerDefinition(PpsDataTableDefinition tableDefinition, PpsDataColumnServerDefinition clone)
            : base(tableDefinition, clone)
        {
            this.fieldName        = clone.fieldName;
            this.metaInfo         = new PpsDataColumnMetaCollectionServer(this, clone.metaInfo);
            this.fieldDescription = clone.fieldDescription;

            this.parentType         = clone.parentType;
            this.parentRelationName = clone.parentRelationName;
            this.parentTableName    = clone.parentTableName;
            this.parentColumnName   = clone.parentColumnName;
        }         // ctor