Optional parameters “must be a compile-time constant”

后端 未结 8 752
面向向阳花
面向向阳花 2020-12-01 15:42

I have a class divided in two partial files, like this:

public partial class PersonRepository : BaseRepository
{
    public static readonly str         


        
8条回答
  •  攒了一身酷
    2020-12-01 16:09

    Try to change this

    public static readonly string ColumnID = "ID";
    

    to

    public const string ColumnID = "ID";
    

提交回复
热议问题