Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import androidx.room.Dao
- import androidx.room.Insert
- import androidx.room.Query
- import androidx.room.Update
- import com.example.myapplication.model.User
- @Dao
- interface UserDao {
- @Query("SELECT * FROM User")
- fun getAll(): List<User?>?
- @Insert
- fun insertAll(vararg users: User?)
- @Update
- fun updateUser(users: User?)
- }
Add Comment
Please, Sign In to add comment