简体   繁体   English

Azure:使用TableStorage的灵活架构

[英]Azure: Flexible schemas using TableStorage

I need to make an asp.net MVC 2 c# webapp where each tenant could define some special fields to a class. 我需要制作一个asp.net MVC 2 c#webapp,每个租户都可以为类定义一些特殊字段。 So for example, in the same app some users will have the field "age", other users will have other field and not necessarily "age". 因此,例如,在同一应用中,某些用户将具有“年龄”字段,其他用户将具有其他字段,而不一定是“年龄”。 Which is the best way to do this? 哪个是最好的方法? There is any blog/tutorial/book with an example of this? 有没有博客/教程/书的例子?

Thanks! 谢谢!

As I commented in your other similar question, you can use List or Array objects to store dynamic properties. 正如我在您的其他类似问题中指出的那样,您可以使用List或Array对象存储动态属性。 They are serializable and will persist to TableStorage. 它们是可序列化的,并将保留到TableStorage。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM