0
votes

Reverse engineering using Scaffold-DbContext for Ef Core 1.0 generates Models with pluralized name.

I am using SQL Server 2014 with table name pluralized eg: Blogs, Posts... the Scaffold-DbContext generate model classes with Blogs, Posts but i want the model classes to be Blog, Post and DbSet to be Blogs and Posts.

1
Thanks. I have checked the link. Is there any work around for now. - Michael
Version 6 had code templates you could download and customize. You could use them to get your initial POCOs created then use them in core. - Steve Greene

1 Answers

0
votes

This isn't possible in EFCore v1. However it is possible in EFCore v2. https://stackoverflow.com/a/52852282/1453411