如何使用Entity Framework安全地将id数据类型从INT转换为string?

我想将id实体从int更改为string。我已经创建了数据库,但它还没有数据。

public class Workflow
{
     public int ID { get; set; }
     /* it was first created as a int "public int Status { get; set; }" now I want to change it to string */
     public string Status { get; set; }
}

转载请注明出处:http://www.hjsszs.com/article/20230526/1394532.html