Vladislav
Vladislav

Reputation: 81

Entity Framework 7 scaffolding with original name

I need scaffolding my 500+ tables to models and DbContext. I perform dotnet-ef-dbcontext-scaffold command as stated here, but all models created with the name with a capital letter and have been omitted underscores. How perform scaffold and create models with original names and cases?

Upvotes: 1

Views: 719

Answers (1)

Simon_Weaver
Simon_Weaver

Reputation: 146208

There may be a change in the 1.2 release to adjust the powershell parameters according to this :

https://github.com/aspnet/EntityFramework/issues/6018

They do have a way of specifying it in your own code - where you can write whatever rules you want.

https://gist.github.com/natemcmaster/353f4ab3efb4514eeaec846df28f0e24

Apparently it is not officially supported. Expect more work on this in future.

Upvotes: 1

Related Questions