Esempio n. 1
0
        private static EntityFileInfo GetFileInfo(string path, EntityFileTypeEnum type)
        {
            System.IO.FileInfo fileInfo = new System.IO.FileInfo(path);

            EntityFileInfo info = new EntityFileInfo();

            info.FullPath       = path;
            info.EntityFileType = type;
            var item = envInfo.solution.FindProjectItem(info.FullPath);

            if (item != null)
            {
                info.IsExistsInProject = true;
                info.ProjectItem       = item;
            }

            info.FileName       = fileInfo.Name;
            info.IsExistsInHard = fileInfo.Exists;
            info.Project        = GetProjectByEntityFileType(info.EntityFileType);
            return(info);
        }
Esempio n. 2
0
 private static void AddEntityInfoPath(Dictionary <EntityFileTypeEnum, EntityFileInfo> list, EntityFileInfo info)
 {
     list.Add(info.EntityFileType, info);
 }