Avoid pluralized name in table creation with Entity Framework Code First
When you work with Entity Framework Code First approach, you are creating your database tables from your model classes. Usually Entity Framework will create tables with Pluralized names. that means if you have a model class called PhoneNumber, Entity framework will create a table for this class called "PhoneNumbers". If you wish to avoid pluralized name and wants singular name like Customer , you can do it like this
In your DBContext class, Override the "OnModelCreating" method like this
Having this Method Overriding will avoid creating tables with pluralized names. Now it will create a Table called "PhoneNumber" , Not "PhoneNumbers"