Jump to content
AskCloud.com
  • Unlock Features of our Cloud Community and Certification Clubs.
    Sign up or login with your Facebook or Google account.

    Welcome Guest!

  • 1
Sign in to follow this  
ramesh

issue getting ID of queried row

Question

i have queried in below mentioned format and couldn't find a way to interact with row ID for emails, 

var email = emailEntry.Text;
var emailQuery = await MobileService.GetTable<Users>()
                                    .Where(item => item.Email == email)
                                    .ToEnumerableAsync();

 

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Try this, 

var email = emailEntry.Text;
var emailQuery = await MobileService.GetTable<Users>()
                                    .Where(item => item.Email == email)
                                    .ToEnumerableAsync();

var user = emailQuery.FirstOrDefault();
if(user != null) {
    var id = user.Id;
}

 

Share this post


Link to post
Share on other sites
Guest
You are commenting as a guest. If you have an account, please sign in.
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  



×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.