是否可以使用 C# 从 Azure 表存储中检索前 n 个记录?我正在使用 .NET Core。
如果我也能得到一些引用就好了。
请注意,我所有的实体都是使用日志尾模式存储的 https://learn.microsoft.com/en-us/azure/cosmos-db/table-storage-design-guide#log-tail-pattern
谢谢, 普拉文
最佳答案
您可以使用 Take()创建 TableQuery 时的方法:
TableQuery<T> query = new TableQuery<T>().Take(takeCount);
或者设置属性TakeCount指定它:
TableQuery<T> query = new TableQuery<T>();
query.TakeCount = takeCount;
关于c# - 使用 .NET Core 从 Azure 表存储中检索前 n 个记录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50682489/