示例#1
0
 public void DeleteRange(List <City> citys)
 {
     if (citys == null || citys.Count == 0)
     {
         return;
     }
     using (var db = new AddressContext())
     {
         db.RemoveRange(citys);
         db.SaveChanges();
     }
 }