1
在下面的代碼塊中,我試圖從Asp.net執行存儲過程。存儲過程使用Subsonic 3的ExecuteTypedList錯誤
StoredProcedure sp = new StoredProcedure("GetIDsWithinRadius");
sp.Command.AddParameter("ZipCode", 03461);
sp.Command.AddParameter("GivenMileRadius", 4);
List<DbData.User> users = sp.ExecuteTypedList<DbData.User>();
試圖將返回數據加載到類型列表中的最後一行代碼在運行時會產生以下錯誤。任何想法我做錯了什麼?
Server Error in '/' Application.
Implicit conversion from data type sql_variant to char is not allowed.
Use the CONVERT function to run this query.