示例#1
0
 // Get Tests Thread
 public static List <TestMyLibrary> GetTestsForThreadMyLibrary(int PMID)
 {
     using (EditorsEntities entity = new EditorsEntities())
     {
         var Result = entity.lib_GetTestsForThread(PMID);
         List <TestMyLibrary> ResultMain = new List <TestMyLibrary>();
         foreach (var item in Result)
         {
             TestMyLibrary Test = new TestMyLibrary();
             Test.TestID = item.TestID;
             Test.Name   = item.Name;
             ResultMain.Add(Test);
         }
         return(ResultMain);
     }
 }