Bug? DbSet plural incorrect when table ends with a "s"

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
RobertK
Posts: 66
Joined: Thu 02 Mar 2017 05:44

Bug? DbSet plural incorrect when table ends with a "s"

Post by RobertK » Sat 08 Sep 2018 04:37

When a model name ends with a "s"

Example
  • TransactionStatus
EntityDeveloper will generate the following context

Code: Select all

        public virtual DbSet<TransactionStatus> TransactionStatus
        {
            get;
            set;
        }
It should be

Code: Select all

        public virtual DbSet<TransactionStatus> TransactionStatuses
        {
            get;
            set;
        }

Pinturiccio
Devart Team
Posts: 2357
Joined: Wed 02 Nov 2011 09:44

Re: Bug? DbSet plural incorrect when table ends with a "s"

Post by Pinturiccio » Fri 14 Sep 2018 13:36

Sorry for the late response.

Status is an exception, and it can be plural without adding es. For more information, please refer to https://onlinewritingtraining.com.au/20 ... of-status/

RobertK
Posts: 66
Joined: Thu 02 Mar 2017 05:44

Re: Bug? DbSet plural incorrect when table ends with a "s"

Post by RobertK » Fri 14 Sep 2018 23:50

Pinturiccio wrote:
Fri 14 Sep 2018 13:36
Sorry for the late response.

Status is an exception, and it can be plural without adding es. For more information, please refer to https://onlinewritingtraining.com.au/20 ... of-status/
thanks!

Post Reply