插入的时候没有使用数据库默认字段 返回
SqlSugar
老数据
4
1115
悬赏:5 飞吻
数据库时间设置了默认值,但是插入的时候没有使用默认值
Db.Insertable(appFile).ExecuteCommand();
热忱回答(4)
-
fate stay night VIP0
2020/11/21特性添加 isignoreinsert=true
0 回复 -
最长的电影 VIP0
2020/11/21@fate stay night:在哪里添加呢?我是小白0.0
0 回复 -
fate stay night VIP0
2020/11/21[SugarColumn(IsOnlyIgnoreInsert =true)]
public string createtime { get; set; }
0 回复 -
最长的电影 VIP0
2020/11/21@fate stay night:谢谢,条件查询id=@id 是什么意思呢
0 回复