C#注意事项及错误处理时间:2023-03-09 02:42:47 1 使用到config文件配置数据库路径 ConfigurationManager.ConnectionStrings["dbPath"].ConnectionString; dbPath 必须有,否则使用时会报错