1
我已經存儲在Azure Table中的一些枚舉這樣使用Array或List屬性創建TableEntity?
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
選擇/Edoe
作爲選擇值。