dotnetcore / dotnetcore/Magicodes.IE
对于bool类型的字段,当手动填写除true和false外的其他字符串,会被当做false处理
Open
- Dominant language
- C#
- Stars
- 2.2k
- Forks
- 495
- PR merge metrics
- No merged PRs in 30d
Description
期望的结果应该是报错误
```csharp
[ImporterHeader(Name = "是否为GEO点")]
[Required(ErrorMessage = "是否为GEO点不能为空")]
[ValueMapping(text: "是", true)]
[ValueMapping(text: "否", false)]
public bool Geo { get; set; }
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.