简体   繁体   English

SqlTableProfileProvider和自定义类型属性

[英]SqlTableProfileProvider and custom type property

I'm using the SqlTableProfileProvider to store profile data. 我正在使用SqlTableProfileProvider存储配置文件数据。 It works great for standard fields... But I would like to store shopping cart data stored like this: http://csharpdotnetfreak.blogspot.com/2009/05/aspnet-creating-shopping-cart-example.html 它非常适合标准字段...但是我想存储这样存储的购物车数据: http : //csharpdotnetfreak.blogspot.com/2009/05/aspnet-creating-shopping-cart-example.html

I'm basicly running into the same problem described in this forum topic: http://forums.asp.net/p/1065760/1627006.aspx No resolution on the forum... anyone here done this? 我基本上遇到了该论坛主题中描述的相同问题: http : //forums.asp.net/p/1065760/1627006.aspx论坛上没有解决方案……这里有人这样做吗?

Any ideas would be appreciated. 任何想法,将不胜感激。 Thanks. 谢谢。

Adam 亚当

Looks like the"sandbox" SqlTableProfileProvider is not going to allow me to store other data types in the fields... 看起来“沙箱” SqlTableProfileProvider不允许我在字段中存储其他数据类型...

So I took the route defined in the bottom of this post. 因此,我采用了本文底部定义的路线。 http://forums.asp.net/p/956974/1649620.aspx#1649620 http://forums.asp.net/p/956974/1649620.aspx#1649620

I added a default sqlprofile provider and store the shopping cart data there. 我添加了一个默认的sqlprofile提供程序,并将购物车数据存储在那里。

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

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