Beispiel #1
0
 public static void SaveDkhLs(CurDbContext dbContext, string[] arr)
 {
     dbContext.TestTable.RemoveRange(dbContext.TestTable.Where(a => a.Type == DKHLS));
     dbContext.TestTable.AddRange(arr.Select(a => new TestTable {
         Name = a, Type = DKHLS
     }));
     dbContext.SaveChanges();
 }
Beispiel #2
0
 public static List <string> GetJxsLS(CurDbContext dbContext)
 {
     return(dbContext.TestTable.Where(a => a.Type == JXSLS).Select(a => a.Name).ToList().Select(a => Rename(a)).ToList());
 }