Configure asp.net membership by changing the userid type to integer

in asp.net membership is it possible to change the type "userid" from "uniqueidentifier" to "integer"? and how to do it?

+3
source share
1 answer

The userid user data type asp.net is set to uniqueidentifier in the table schema. You probably do not want to try to change the data type of the column, because then all stored procedures and the sqlmembership provider will also need to be changed. But you can create a lookup table that matches an integer with the specified identifier for a unique user identifier. The lookup table will have 2 columns, one for the UserId from the asp.net membership (uniqueidentifier data type), and then a second column of type int, which will give you your integer that you are looking for.

, , ? asp.net ( int ), .

+2

Source: https://habr.com/ru/post/1702294/


All Articles