私は SimpleMembership を使用しており、それを User テーブルに接続しましたが、すべて正常に機能しました。しかし、UserId を int から GUID に変更しようとすると、エラーが発生しました。
Cannot convert type 'System.Guid' to 'int'
これらのコード行の場合:
WebSecurity.CreateUserAndAccount(model.Email, model.Password,
new
{
Name = model.Name,
Surname = model.Surname,
Gender = model.Gender,
}
);
テーブル webpages_OAuthMembership と webpages_Membership で、UserId を int から uniqueidentifier (guid を表す) に変更しましたが、役に立ちませんでした。
では、ユーザー ID の GUID を取得できますか? guid を使用できない場合、 BIGINT を使用できますか?