Page 1 of 1

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

Posted: Sat 08 Sep 2018 04:37
by RobertK
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;
        }

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

Posted: Fri 14 Sep 2018 13:36
by Pinturiccio
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/

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

Posted: Fri 14 Sep 2018 23:50
by RobertK
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!