The parameterized query which was not supplied

前端 未结 3 1494
野趣味
野趣味 2021-01-04 19:28

I keep getting this error :

The parameterized query \'(@AdminEmail nvarchar(4000),@AdminPassword nvarchar(4000))SELECT\' expects the parameter \'@A

3条回答
  •  春和景丽
    2021-01-04 20:02

    Is it possible that the EMail property is null (Email is Nothing)? I think you might get that error in that case. Be sure that EMail = String.Empty or EMail = "" before you set your parameter value.

    Edit: Or as another answer suggests, you can send DBNull.Value instead if you actually want nulls in your database.

提交回复
热议问题