(VS2017) There was an error running the selected code generator: 'Sequence contains no elements'

前端 未结 13 2385
忘了有多久
忘了有多久 2021-01-04 11:34

I\'m running through one of Microsoft\'s tutorials on MVC development and I\'m getting errors when trying to create various elements; Views, Controllers, etc.

The e

13条回答
  •  萌比男神i
    2021-01-04 11:57

    I have no evidence of the root cause, but the following issue wastes my two days ago to find out the solution.

    If there big data table type in your model class, check the following word has existed

    [Column(TypeName = "ubigint")]
    [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
    

    in your model class. Just take out these two-line, everything is going to be fine.

提交回复
热议问题