2

In my SQL Server table, I have a computed column. So for that column, I want to have only reading statements (like 'select') and no writing statements (like 'update') in generated code by Linq2DB.

What is the easiest way to do it?

I don't want to all update/add statements explicitly to prevent writing to this column.

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459

1 Answers1

5

Use [Column(SkipOnUpdate=false, SkipOnInsert=false)] attribute.

IT.
  • 859
  • 4
  • 11