, , , . , LINQ (, , ..) ( ). , , . - , .Select() .Where(), , .
. , . , , , , :
void Main()
{
var acct = CloudStorageAccount.DevelopmentStorageAccount;
var client = acct.CreateCloudTableClient();
var ctx = client.GetDataServiceContext();
ctx.IgnoreMissingProperties = true;
var table = "tl36f6e92d94954f168ade0be6a547c0ce";
var q = ctx.CreateQuery<Foo>(table)
.Where(e => e.RowKey.CompareTo(2) < 0)
.Take(10);
((DataServiceQuery)q).RequestUri.Dump();
q.Dump();
}
[System.Data.Services.Common.DataServiceKey("PartitionKey", "RowKey")]
class Foo
{
public string PartitionKey { get; set; }
public string RowKey { get; set; }
public string Whatever { get; set; }
}
LINQPad ( -) URI. , , , . , , , . , .