Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的 SQL Server 表中,我有一个计算列。因此,对于该专栏,我希望在 Linq2DB 生成的代码中只有读取语句(如“select”)而没有写入语句(如“update”)。
最简单的方法是什么?
我不想明确地更新/添加语句来阻止写入此列。
使用[Column(SkipOnUpdate=false, SkipOnInsert=false)]属性。
[Column(SkipOnUpdate=false, SkipOnInsert=false)]