Page 1 of 1

Singular not working

Posted: Thu 09 Jan 2020 18:36
by wireplay
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;}

Re: Singular not working

Posted: Thu 09 Jan 2020 20:15
by wireplay
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?

Re: Singular not working

Posted: Fri 10 Jan 2020 12:50
by Shalex
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.