【发布时间】:2018-01-13 00:32:41
【问题描述】:
我在 Azure 表中存储了一些这样的枚举
pk rk | en fr de ...
foo 1 | 'Eune' 'Fune' 'Dune' ...
foo 2 | 'Edoe' 'Fdoe' 'Ddoe' ...
bar 1 | 'Unee' 'Unef' 'Trid' ...
bar 2 | 'Diee' 'Dief' 'Died' ...
bar 3 | 'Trie' 'Tref' 'Trid' ...
en、fr、de 等是语言代码,分别是表中的列名。
我应该创建什么样的TableEntity 才能正确加载它
public class FooEntity : TableEntity
{
public Dictionary<string, string> Descriptions {get; set} // ?
}
然后像myFoo["fr"]...这样使用它们可以吗?
假设我有英文 GUI,我需要显示一个 Foo 选择,并将 Eune/Edoe 作为选择值。
【问题讨论】:
标签: azure-table-storage azure-tablequery