예제 #1
0
 public void InsertBulk(IEnumerable <Track> Entities)
 {
     foreach (Track track in Entities)
     {
         if (db.Entry(track).State == EntityState.Detached)
         {
             Dbset.Add(track);
         }
     }
     db.SaveChanges();
     Dbset.AddRange(Entities);
 }