Exemplo n.º 1
0
        /// <summary>
        /// 批量插入[基本方法]
        /// </summary>
        /// <param name="list"></param>
        /// <param name="keepIdentity">是否保持自增主键</param>
        public void BatchInsert(List <TModel> list, bool keepIdentity = false)
        {
            DBExtend helper = dbHelper;

            helper.BatchInsert(list, keepIdentity);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 批量插入[基本方法]
        /// </summary>
        /// <typeparam name="TItem"></typeparam>
        /// <param name="orderDetail"></param>
        public static void BatchInsert <TItem>(List <TItem> orderDetail) where TItem : TModel
        {
            DBExtend helper = dbHelper;

            helper.BatchInsert <TItem>(orderDetail);
        }