1

我有一个模型,其属性为 type byte[],对应的字段在 SQL Server 上等同于 type varbinary(128)

储蓄进展顺利。但问题是我的密码字段始终为 NULL。

guser.Password = Encoding.ASCII.GetBytes("sample");
repo.Add(guser);

这是错误还是用户错误?

4

0 回答 0