Android Room persistence library @Update not working

前端 未结 3 1656
南旧
南旧 2021-02-05 09:42

I am trying to update my database via new android room library, but it is not working. Here it is my approach

@IgnoreExtraProperties
@Entity(tableName = CarModel         


        
3条回答
  •  佛祖请我去吃肉
    2021-02-05 10:07

    Make sure the row you want to updated and model you are sending to update should have same id which you have defined as primary key.

提交回复
热议问题