コード例 #1
0
        public Dictionary <string, string> GetColumnPathsAndEntityNames(Dictionary <Guid, List <string> > columnMetaPaths)
        {
            var response = new Dictionary <string, string>();

            EntitySchemaManager entitySchemaManager = UserConnection.EntitySchemaManager;

            foreach (KeyValuePair <Guid, List <string> > keyValuePair in columnMetaPaths)
            {
                Guid         entitySchemaUId = keyValuePair.Key;
                EntitySchema entitySchema    = entitySchemaManager.GetInstanceByUId(entitySchemaUId);
                response[entitySchemaUId.ToString()] = entitySchema.Name;
                List <string> metaPaths = keyValuePair.Value;
                foreach (string metaPath in metaPaths)
                {
                    string columnPath = entitySchema.GetSchemaColumnPathByMetaPath(metaPath);
                    response[metaPath] = columnPath;
                }
            }
            return(response);
        }