private string GetUniqueNameColumn(InternalObjectType objectType) { SchemaRowsetCacheData schemaRowsetCacheData = CubeMetadataCache.SchemaRowsetsData[CubeMetadataCache.GetIndexForInternalType(objectType)]; return(schemaRowsetCacheData.UniqueNameColumnName); }
private ObjectMetadataCache GetObjectCache(InternalObjectType objectType) { return(this.objectMetadataCaches[CubeMetadataCache.GetIndexForInternalType(objectType)]); }
private void CreatePrimaryKeys(DataTable table, InternalObjectType objectType) { SchemaRowsetCacheData schemaRowsetCacheData = CubeMetadataCache.SchemaRowsetsData[CubeMetadataCache.GetIndexForInternalType(objectType)]; DataColumn[] array = new DataColumn[schemaRowsetCacheData.PrimaryKeyColumns.Length]; for (int i = 0; i < schemaRowsetCacheData.PrimaryKeyColumns.Length; i++) { array[i] = table.Columns[schemaRowsetCacheData.PrimaryKeyColumns[i]]; } table.PrimaryKey = array; }