我正在 Windows azure 项目中实现表存储。我的代码:
/// //// Method of _Table class
public CloudTableQuery<Html> AccessEntites()
{
CloudTableQuery<Html> entries =
(from e in ServiceContext.CreateQuery<Html>(TableName)
select e).AsTableServiceQuery();
return entries;
}
/// //
/// Controller code
private _Table db = new _Table("table-name");
public ViewResult Details(string id)
{
Html htmlfile = db.AccessEntites().Single(h => h.RowKey == id); <=========
return View(htmlfile);
}
//////
这里的问题是我得到了 Exception Single method not supported
。谁能告诉我为什么?