Skip to content

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

Description

@pelva

例如
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 测试工程中会被赋值

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions