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

实体类中的只读字段 在Test中也会生成并被赋值,从而报错 #654

Open
pelva opened this issue Jan 7, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@pelva
Copy link

pelva commented Jan 7, 2025

例如
public class SoftwareVersion : BasePoco
{

public byte? Major { get; set; }
public string sMajor => Major == null ? "FF" : Major.ToString();
public byte? Minor { get; set; }
public string sMinor => Minor == null ? "FF" : Minor.ToString();

}
sMajor 在Test 测试工程中会被赋值

@pelva pelva added the bug Something isn't working label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant