Entity Framework MySQL tinyint(1) System.Boolean.Parse FormatException

后端 未结 3 459
梦如初夏
梦如初夏 2021-01-12 01:18

I\'m using EntityFramework 6 in my C# model-first project which using a MySQL database. Everything was fine and I could ge

3条回答
  •  耶瑟儿~
    2021-01-12 02:04

    This can also be achieved using the Column data attribute within the Entity.

    [Column("Active", TypeName = "bit")]
    [DefaultValue(false)]
    public bool Active { get; set; }
    

提交回复
热议问题