The “X” property on “Y” could not be set to a 'null' value. You must set this property to a non-null value of type 'Int32'

前端 未结 11 1416
花落未央
花落未央 2020-12-29 21:38

When I run my application and I click a specific button I get the error:

\"The \"X\" property on \"Y\" could not be set to a \'null\' value. You must set thi         


        
11条回答
  •  佛祖请我去吃肉
    2020-12-29 22:04

    In my case in created view in DB column that I select that contains null value I change that value by this select statement:

    Before my change

     select 
         ..., GroupUuId , ..
    

    after my change

     select 
         ..., ISNULL(GroupUuId, 0), ... 
    

    Sorry for my bad English

提交回复
热议问题