Donggyu1998

Untitled

Jun 7th, 2021
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. import androidx.room.Dao
  2. import androidx.room.Insert
  3. import androidx.room.Query
  4. import androidx.room.Update
  5. import com.example.myapplication.model.User
  6.  
  7. @Dao
  8. interface UserDao {
  9.  
  10. @Query("SELECT * FROM User")
  11. fun getAll(): List<User?>?
  12.  
  13. @Insert
  14. fun insertAll(vararg users: User?)
  15.  
  16. @Update
  17. fun updateUser(users: User?)
  18. }
Add Comment
Please, Sign In to add comment