DataRabbit3.0为ORM访问器提供了批量插入的功能,其方法定义如下:
        /// <summary>
        
/// BatchInsert 批量插入一组记录。忽略所有Blob字段。
        
/// </summary>       
        void BatchInsert(IList<EntityType> entityList);
    当我们需要一次性向同一Table中插入大量(如千条以上)的记录时,使用BatchInsert方法可以显著的提供性能。
   我们还是以          for (int i = 2000; i < 3000; i++)
         {
              accesser.Insert(
new LinqTest.MyOrm.Customer(i, "Peng"434100));
         }

相关文章:

  • 2021-12-01
  • 2021-05-17
  • 2022-01-20
  • 2022-01-03
  • 2022-01-20
  • 2021-07-15
猜你喜欢
  • 2021-07-14
  • 2021-05-26
  • 2021-06-15
  • 2021-07-29
  • 2022-01-09
  • 2022-02-09
  • 2021-08-24
相关资源
相似解决方案