Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 606 Bytes

pluralize.md

File metadata and controls

45 lines (30 loc) · 606 Bytes

Pluralize or singuralize generated object names (English)

Why

Enable this option to make entity classes singular, and DbSet names plural.

Before

efpt.config.json

   "UseInflector": false,

NorthwindContext.cs

public virtual DbSet<Customers> Customers { get; set; } = null!;

Customers.cs

public partial class Customers
{

After

efpt.config.json

   "UseInflector": true,
public virtual DbSet<Customer> Customers { get; set; } = null!;

Customer.cs (file renamed)

public partial class Customer
{