Esempio n. 1
0
        }         // ctor

        /// <summary></summary>
        /// <param name="dataset"></param>
        /// <param name="xTable"></param>
        public PpsDataTableDefinitionClient(PpsDataSetDefinitionClient dataset, XElement xTable)
            : base(dataset, xTable.GetAttribute("name", String.Empty))
        {
            foreach (var c in xTable.Elements())
            {
                if (c.Name == xnColumn)
                {
                    AddColumn(new PpsDataColumnDefinitionClient(this, c));
                }
                else if (c.Name == xnMeta)
                {
                    metaInfo = new PpsDataTableMetaCollectionClient(c);
                }
                else                 // todo: warning
                {
                    throw new NotSupportedException($"Not supported element: {c.Name.LocalName}");
                }
            }

            this.metaInfo = metaInfo ?? new PpsDataTableMetaCollectionClient();
        }         // ctor
Esempio n. 2
0
 /// <summary></summary>
 /// <param name="dataset"></param>
 /// <param name="xTable"></param>
 public PpsDataTableDefinitionDesktop(PpsDataSetDefinitionClient dataset, XElement xTable)
     : base(dataset, xTable)
 {
 }         // ctor
Esempio n. 3
0
 private PpsDataTableDefinitionClient(PpsDataSetDefinitionClient dataset, PpsDataTableDefinitionClient clone)
     : base(dataset, clone)
 {
     this.metaInfo = new PpsDataTableMetaCollectionClient(clone.metaInfo);
 }         // ctor