Best way to update LINQ to SQL classes after database schema change

前端 未结 7 2063
别那么骄傲
别那么骄傲 2020-11-29 16:08

I\'m using LINQ to SQL classes in a project where the database design is still in a bit of flux.

Is there an easy way of synchronising the classes with the schema, o

7条回答
  •  不知归路
    2020-11-29 16:33

    DamienG has written some t4 templates which can replace some of what VS generates for you. These can be rerun whenever you like via a command line tool.

    T4 templates have the added benefit of being editable. This allows you to tweak what is generated to you hearts content.

提交回复
热议问题