简体   繁体   中英

Entity Framework Pascal Case

I have camelCase column names in my DB. I want EF to bring them over as Pascal case, short of modifying the T4 template how can I achieve this.

Ideally I could just toggle an option at EDMX creation time. I do not want to modify the T4 template. Anyone try/achieve this before.

I am using EF 5.0

Currently there isnt a way to do this through configuation. I had to create a custom t4 template and nuget package to distribute this among my team.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM