Ejemplo n.º 1
0
        private string GetUniqueNameColumn(InternalObjectType objectType)
        {
            SchemaRowsetCacheData schemaRowsetCacheData = CubeMetadataCache.SchemaRowsetsData[CubeMetadataCache.GetIndexForInternalType(objectType)];

            return(schemaRowsetCacheData.UniqueNameColumnName);
        }
Ejemplo n.º 2
0
 private ObjectMetadataCache GetObjectCache(InternalObjectType objectType)
 {
     return(this.objectMetadataCaches[CubeMetadataCache.GetIndexForInternalType(objectType)]);
 }
Ejemplo n.º 3
0
        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;
        }