Beispiel #1
0
 public void End()
 {
     foreach (var item in ApiItems)
     {
         var old = Solution.Entities.FirstOrDefault(p => p.Name == item.Name);
         if (old == null)
         {
             Solution.ApiItems.Add(item);
         }
     }
     ApiItems.Clear();
 }
 /// <summary>
 /// 重置全局对象
 /// </summary>
 public static void ResetGloblaCollection()
 {
     Entities.Clear();
     Projects.Clear();
     Enums.Clear();
     ApiItems.Clear();
     foreach (var solution in Solutions)
     {
         var model = new SolutionModel
         {
             Solution = solution
         };
         model.OnSolutionLoad();
     }
 }