Example #1
0
 /// <summary>
 /// 批量插入
 /// </summary>
 /// <returns><c>true</c>, if add was batched, <c>false</c> otherwise.</returns>
 /// <param name="entities">Entities.</param>
 public bool BatchAdd(List <T> entities)
 {
     _context.AddRange(entities);
     return(SaveChanges());
 }