コード例 #1
0
 public CT_PivotCacheDefinition()
 {
     this.extLstField = new CT_ExtensionList();
     this.mapsField = new CT_MeasureDimensionMaps();
     this.measureGroupsField = new CT_MeasureGroups();
     this.dimensionsField = new CT_Dimensions();
     this.calculatedMembersField = new CT_CalculatedMembers();
     this.calculatedItemsField = new CT_CalculatedItems();
     this.tupleCacheField = new CT_TupleCache();
     this.kpisField = new CT_PCDKPIs();
     this.cacheHierarchiesField = new CT_CacheHierarchies();
     this.cacheFieldsField = new CT_CacheFields();
     this.cacheSourceField = new CT_CacheSource();
     this.invalidField = false;
     this.saveDataField = true;
     this.refreshOnLoadField = false;
     this.optimizeMemoryField = false;
     this.enableRefreshField = true;
     this.backgroundQueryField = false;
     this.createdVersionField = ((byte)(0));
     this.refreshedVersionField = ((byte)(0));
     this.minRefreshableVersionField = ((byte)(0));
     this.upgradeOnRefreshField = false;
     this.tupleCache1Field = false;
     this.supportSubqueryField = false;
     this.supportAdvancedDrillField = false;
 }
コード例 #2
0
 public CT_CacheSource AddNewCacheSource()
 {
     this.cacheSourceField = new CT_CacheSource();
     return this.cacheSourceField;
 }
コード例 #3
0
 public static CT_CacheSource Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_CacheSource ctObj = new CT_CacheSource();
     if (node.Attributes["type"] != null)
         ctObj.type = (ST_SourceType)Enum.Parse(typeof(ST_SourceType), node.Attributes["type"].Value);
     if (node.Attributes["connectionId"] != null)
         ctObj.connectionId = XmlHelper.ReadUInt(node.Attributes["connectionId"]);
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "worksheetSource")
             ctObj.worksheetSource = CT_WorksheetSource.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "consolidation")
             ctObj.consolidation = CT_Consolidation.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "extLst")
             ctObj.extLst = CT_ExtensionList.Parse(childNode, namespaceManager);
     }
     return ctObj;
 }