public async Task<IEnumerable<Users>> GetAllUsers()
{
return (await firebase
.Child("Users")
.OnceAsync<Users>()).Select(item => new Users
{
UserName= item.Object.UserName.ToString(),
Password = item.Object.Password.ToString(),
Role = item.Object.Role.ToString()
}).ToList();
}
I am a beginner to App development. While retriving the data from the Firebase Realtime database getting the above error. Scratching head for 4 hours. Please help.