ado 数据库提交为Null
时间:2021-07-01 10:21:17
帮助过:2人阅读
SqlParameter(
"@email",System.Data.SqlDbType.VarChar,
100){Value=model.Email==
null?DBNull.Value:(
object)model.Email}
model.Email = reader.IsDBNull(
3) ?
null : reader.GetString(
3);
ado 数据库提交为Null
标签: