0
我有一個Employee表,其中包含一個類型爲uniqueidentifier的列User_Id,它是aspnet_Users中User_Id列的外鍵。當我嘗試使用User.Identity作爲參數去進入一個存儲過程一個新員工,它給了我這個錯誤:從表到aspnet_Users的外鍵:ASP.NET
No mapping exists from object type System.Security.Principal.GenericIdentity to a known managed provider native type.
我怎樣才能解決這個問題?關聯註冊的用戶和員工數據是必要的,因爲我需要能夠僅爲已登錄用戶檢索員工數據。