我使用Slazure作为ORM与Azure表存储,我的设置如下:
dynamic storage = new DynStorage("UseDevelopmentStorage=true");
dynamic table = storage.Eopro;
,但现在我将一个表名作为字符串变量中的字符串,我该如何使其工作:
dynamic storage = new DynStorage("UseDevelopmentStorage=true");
string tableName = "Eopro";
// ???
答案 0 :(得分:1)
请尝试以下代码:
dynamic storage = new DynStorage("UseDevelopmentStorage=true");
dynamic table = new DynTable(storage.StorageAccount, "Employees");
这对你有用吗?