以下代码总是抛出异常
....
DataServiceContext ctx = account.CreateCloudTableClient().GetDataServiceContext();
var val = (from t in ctx.CreateTable<MyClass>("TableName")
select new {testval = t.id}).FirstOrDefault();
如果我阅读实体它工作正常:
var val = (from t in ctx.CreateTable<MyClass>("TableName")
select t).FirstOrDefault();
是否不可能从 Azure 表中仅读取一个字段(或几个,我不想读取实体)?
提前致谢。
更新:
异常数据:System.Data.Services.Client.DataServiceQueryException。
消息 - “处理此请求时发生错误。”
内部异常 - 代码:“InvalidInput”,消息:“其中一个请求输入无效。”