sqlsugar 报异常 Value cannot be null. (Parameter 'type') 返回

SqlSugar 沟通中
2 350

Value cannot be null. (Parameter 'type')

at System.ArgumentNullException.Throw(String paramName)

   at System.Activator.CreateInstance(Type type, Boolean nonPublic, Boolean wrapExceptions)

   at SqlSugar.InstanceFactory.NoCacheGetCacheInstance[T](String className)

   at SqlSugar.InstanceFactory.CreateInstance[T](String className)

   at SqlSugar.InstanceFactory.GetAdo(ConnectionConfig currentConnectionConfig)

   at SqlSugar.SqlSugarProvider.get_Ado()

   at SqlSugar.SqlSugarClient.get_Ado()


热忱回答2

  • fate sta fate sta VIP0
    1个月前

    删掉OBJ和BIN打包上传一个可以重现的DEMO.

    0 回复
  • 呋喃 呋喃 VIP0
    1个月前

    @fate sta已解决,这个是在.netcore 使用了 DbType.MySqlConnector 导致的,我应该用DbType.Mysql的

    0 回复