Singular not working

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
wireplay
Posts: 2
Joined: Thu 09 Jan 2020 18:20

Singular not working

Post by wireplay » Thu 09 Jan 2020 18:36

I am generating for EF Core. If I go into the Model Settings ==> Synchronization ==> Class Properties Names ==> Pluralization = Singularize, the generated code still contains plural property names:

Example:

public virtual int StoreIDs{get;set;}
public virtual int StoreNumbers{get;set;}
public virtual string Names{get;set;}

wireplay
Posts: 2
Joined: Thu 09 Jan 2020 18:20

Re: Singular not working

Post by wireplay » Thu 09 Jan 2020 20:15

This works if you do it correctly from the start. I was trying to modify it after the model had been generated. For future reference, how do I regenerate after making a change?

Shalex
Site Admin
Posts: 8862
Joined: Thu 14 Aug 2008 12:44

Re: Singular not working

Post by Shalex » Fri 10 Jan 2020 12:50

wireplay wrote:
Thu 09 Jan 2020 20:15
This works if you do it correctly from the start. I was trying to modify it after the model had been generated. For future reference, how do I regenerate after making a change?
You should run Update From Database Wizard and select Recreate Model on the first step.

Post Reply