How can I add my attributes to Code-Generated Linq2Sql classes properties?

前端 未结 6 834
甜味超标
甜味超标 2020-12-01 10:49

I would like to add attributes to Linq 2 Sql classes properties. Such as this Column is browsable in the UI or ReadOnly in the UI and so far.

I\'ve thought about usi

6条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-01 11:18

    You may want to consider using Damien Guard's T4 templates for Linq To Sql. Modifying his templates would most likely give you the results you seek.

    Hope this helps!

提交回复
热议问题