ple*_* me 9 azure azure-table-storage
我怀疑是这样,因为抽象类TableServiceEntity具有以下内容:
public virtual string PartitionKey { get; set; }
public virtual string RowKey { get; set; }
Run Code Online (Sandbox Code Playgroud)
如果我想要一个DateTime或Double的RowKey怎么办?
Stu*_*art 19
是的,这些都是字符串.
如果您希望RowKey是DateTime或Double,那么您必须使用字符串表示.
有一些常见的模式.对于DateTime,通常会看到使用方便排序的字符串表示DateTime:
要么
请参阅Steve Marx 撰写的这篇博客文章 - http://blog.smarx.com/posts/using-numbers-as-keys-in-windows-azure
| 归档时间: |
|
| 查看次数: |
5468 次 |
| 最近记录: |