将 asp.net 用户的配置文件信息存储在单独的列中而不是 1 个长列中?

发布于 2024-08-20 23:57:44 字数 164 浏览 2 评论 0原文

当您为 ASP.NET 用户创建配置文件信息时,它会在 1 个字段中创建所有属性值。这不是最容易查询的事情。有没有办法告诉它将值存储在单独的列中,例如地址、城市、州、邮政编码,而不是名为 PropertyStringValues 的列,其中值可能类似于 City:s:0:10State:s:10:15.. ...

When you create profile information for an asp.net user, it creates all the property values in 1 field. This is not the easiest thing to query. Is there a way to tell it to store the values in separate columns like Address, City, State, Zipcode instead of a column called PropertyStringValues where the value might be something like City:s:0:10State:s:10:15.....

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

晨曦÷微暖 2024-08-27 23:57:44

是的,但您必须使用自定义配置文件提供程序。 这个,由 Microsoft 员工hao Kung 创建,应该这样做你在寻找什么。

Yes, but you'll have to use a custom profile provider. This one, created by Microsoft employee Hao Kung should do what you are looking for.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文