Resolving naming convention conflict between entities in EF4 and our database standards?

前端 未结 3 868
我在风中等你
我在风中等你 2021-01-14 13:31

I\'m investigating replacing or supplementing our home grown ORM system with the Entity Framework 4, and I\'m noticing that the latter may end up causing a conflict between

3条回答
  •  北海茫月
    2021-01-14 14:12

    Sure there is. There is T4 template which converts your model to SQL DDL scripts. You can make a copy of this template and put your own logic for name generation into the new copy. After that you just need to set this template in your designer (DDL Generation Template property) and run Generate Database from Model ...

    You will find default template in:

    %VSINSTALLDIR%\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\DBGen\SSDLToSQL10.tt
    

提交回复
热议问题