批量添加报Parameter count mismatch. 返回

SqlSugar 老数据
3 1821
该叫什么 Later 发布于2020/9/16
悬赏:0 飞吻

代码如下,

  public bool InsertBatch<T>(List<T> insertObjs) where T : class

        {

            bool result;

            try

            {

                using (SqlSugarClient instance = GetInstance())

                {

                    result = instance.Insertable(insertObjs).ExecuteCommand() > 0;

                }

            }

            catch (Exception ex)

            {

                throw ex;

            }

            return result;

        }


热忱回答3