开发者

MySQL and SQL Membership Provider : Can it be set to not use ints?

开发者 https://www.devze.com 2023-03-08 04:00 出处:网络
I\'m setting up a new .NET MVC3 site and decided to use MySQL instead of MSSQL (mainly because I\'m poor and hosting MSSQL based sites is getting expen开发者_运维知识库sive).

I'm setting up a new .NET MVC3 site and decided to use MySQL instead of MSSQL (mainly because I'm poor and hosting MSSQL based sites is getting expen开发者_运维知识库sive).

I was planning on using the SQL Membership Provider and with a bit of fiddling got it all hooked up. I can create users, browse around etc. That is, until I tried getting the logged in users GUID. Looking at the users table, it appears that the users are stored only with an INT, not a GUID.

Is there a way to force the MySQL provider (or would it be the .NET connector...) to use a GUID instead of an INT?


Take a look at Custom Membership User and Customize CreateUserWizard Control

0

精彩评论

暂无评论...
验证码 换一张
取 消