我可以在 RIA 服务用户配置文件中使用哪些数据类型?
我知道 RIA 服务对于允许您通过网络发送的类型有点挑剔。我在开发内部业务线应用程序时多次遇到过这种情况。
我还知道 ASP.Net 配置文件不允许您保存字典(序列化程序的限制)。常见的解决方法是创建一个派生自 System.Collection.ObjectModel.KeyedCollection 的自定义类,然后可以对其进行序列化。然而,RIA 服务层似乎对这种解决方法不太满意。
在研究设置用于 DomainAuthenticationService 的用户配置文件时,教程和文档往往仅使用基本数据类型(int、string 等),而从不使用任何更复杂的数据类型。
谁能告诉我这个特定场景的数据类型的确切限制?
I know that RIA Services is kind of picky about which types it will let you send across the wire. I've run across this several times in working on an internal line of business app.
I also know that ASP.Net profiles don't allow you to save Dictionaries (a limitation of the serializer). The common workaround for this is to create a custom class that derives from System.Collection.ObjectModel.KeyedCollection, which can then be serialized. However, the RIA services layer doesn't seem too happy about this workaround.
In researching setting up user profiles for use with the DomainAuthenticationService, the tutorials and documentation tend to only use basic data types (int, string, etc.) and to never use anything more complicated.
Can anyone enlighten me on the exact restrictions on data type for this specific scenario?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论