To retrieve row from table where id=10000;
int WantedID = 10000;
public IMobileServiceTable<SomeTable> MyTable = App.MobileService.GetTable<SomeTable>();
MobileServiceCollection<SomeTable, SomeTable> MyList = new MobileServiceCollection<SomeTable, SomeTable>(MyTable.Where(t => t.id == WantedID));
And your class SomeTable would be something like:
using Newtonsoft.Json;
...
public class SomeTable: INotifyPropertyChanged
{
private Int64 _id;
[JsonProperty(PropertyName = "id")]
public Int64 id
{
get
{
return _id;
}
set
{
if (value != _id)
{
_id = value;
NotifyPropertyChanged("id");
}
}
}
private string _name;
[JsonProperty(PropertyName = "name")]
public string name
{
get
{
return _name;
}
set
{
if (value != _name)
{
_name= value;
NotifyPropertyChanged("_name");
}
}
}
Now your MyList is populated with data downloaded from Azure and you can for example bind it to LonglistSelector. And if you need to access property of one specific data item, you can do MyList[0].name
Furthermore I'd advice that your class SomeTable is exact clone of your table in Azure, and each property name is exactly like the column names in the table.