dotnetcore / dotnetcore/SmartSql

找不到配置项的异常提示有点迷

Open
#147 5 comments 0 reactions 1 assignee Claimed by @Ahoo-Wang View on GitHub
enhancement
Dominant language
C#
Stars
1.1k
Forks
229
PR merge metrics
No merged PRs in 30d

Description

## Steps to reproduce

配置进入一个不存在的配置项作为连接字符串






如上面代码,没有任何配置添加了 SmartSqlConnectionString 的定义

## Expected result

能在异常信息里面体现是配置项缺失,如找不到 xx 配置等

## Actual result

```
SmartSql.Configuration.Properties.GetPropertyValue.AnonymousMethod__6_0(System.Text.RegularExpressions.Match)
System.Text.RegularExpressions.Regex.Replace(System.Text.RegularExpressions.MatchEvaluator, System.Text.RegularExpressions.Regex, string, int, int)
System.Text.RegularExpressions.Regex.Replace(string, System.Text.RegularExpressions.MatchEvaluator)
```

![图片](https://user-images.githubusercontent.com/16054566/100684997-6cf51e80-33b6-11eb-9eab-1c5cd7f19b56.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.