示例#1
0
        public CT_PivotCache AddNewPivotCache()
        {
            if (this.pivotCacheField == null)
            {
                this.pivotCacheField = new List <CT_PivotCache>();
            }
            CT_PivotCache c = new CT_PivotCache();

            this.pivotCacheField.Add(c);
            return(c);
        }
示例#2
0
        public static CT_PivotCache Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_PivotCache ctObj = new CT_PivotCache();

            ctObj.cacheId = XmlHelper.ReadUInt(node.Attribute("cacheId"));
            ctObj.id      = XmlHelper.ReadString(node.Attribute((XNamespace)PackageNamespaces.SCHEMA_RELATIONSHIPS + "id"));
            return(ctObj);
        }
示例#3
0
        public static CT_PivotCaches Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_PivotCaches ctObj = new CT_PivotCaches();

            ctObj.pivotCache = new List <CT_PivotCache>();
            foreach (XElement childNode in node.ChildElements())
            {
                if (childNode.Name.LocalName == "pivotCache")
                {
                    ctObj.pivotCache.Add(CT_PivotCache.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }