InsertParameters 中有一个参数。当我尝试设置它时,我收到一个错误::
不允许从数据类型 sql_variant 到 uniqueidentifier 的隐式转换。使用 CONVERT 函数运行此查询
这是我在 C# 中的代码:
String complexID = Guid.NewGuid().ToString();
SqlDataSource1.InsertParameters["PKComplexID"].DefaultValue = complexID;
有人可以帮忙吗?