Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DbContextExtension.cs文件中存在的bug #141

Open
cooljie2018 opened this issue Oct 20, 2022 · 1 comment
Open

DbContextExtension.cs文件中存在的bug #141

cooljie2018 opened this issue Oct 20, 2022 · 1 comment

Comments

@cooljie2018
Copy link

我使用的是MySQL的数据库

  1. 当数据库表中存在的字段是double?, byte?时,DbContextExtension.cs的SetEntityDefaultValue方法存在bug
  2. switch(sType)分支中, 处理case "Byte": 时需要强制转换为(byte) 0, case "Double":时需要设置为0.0,否则会抛出异常

希望作者能将这个bug修复合并到主干

@liukuo362573
Copy link
Owner

Hi,如果是 bug 的话,拉一个 pull request,我 merge。 @cooljie2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants