コード例 #1
0
        public string[] GetObjectMapPaths()
        {
            string files = GlobalConfig.ReadValue(ORM, OBJECT_MAP);

            string[] paths;
            if (string.IsNullOrEmpty(files))
            {
                paths = new string[] { }
            }
            ;
            else
            {
                paths = files.Split(Delimiter, StringSplitOptions.RemoveEmptyEntries);
            }

            for (int i = 0; i < paths.Length; i++)
            {
                string path = Runtime.GetPath(paths[i]);
                if (!File.Exists(path))
                {
                    ConfigExceptionHelper.ThrowMapFileNotExist(path);
                }
                paths[i] = path;
            }

            return(paths);
        }