Пример #1
0
        public Dictionary <string, string> GetMetaPathsAndEntityNames(Dictionary <string, List <string> > columnMetaPaths)
        {
            var response = new Dictionary <string, string>();

            EntitySchemaManager entitySchemaManager = UserConnection.EntitySchemaManager;

            foreach (KeyValuePair <string, List <string> > keyValuePair in columnMetaPaths)
            {
                string       entitySchemaName = keyValuePair.Key;
                EntitySchema entitySchema     = entitySchemaManager.GetInstanceByName(entitySchemaName);
                response[entitySchemaName] = entitySchema.UId.ToString();
                List <string> columnPaths = keyValuePair.Value;
                foreach (string columnPath in columnPaths)
                {
                    response[columnPath] = entitySchema.GetSchemaColumnMetaPathByPath(columnPath);
                }
            }
            return(response);
        }