Hi,
给dbParameter指定参数类型呗,默认类型的话的确是有这个问题,范例:
System.Data.Common.DbParameter dbParameter = command.CreateParameter();//System.Data.Common.DbCommand
// 参数名
dbParameter.ParameterName = "";
// 参数类型
dbParameter.DbType = DbType.Date;
// 参数值
dbParameter.Value = null;
// 添加参数
command.Parameters.Add(dbParameter);
Regards,
Moonlight
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.