Re[3]: Работает ли PluralizeDataContextPropertyNames ?
От: ILog  
Дата: 27.11.10 18:21
Оценка:
IT>>А если просто включить PluralSingular.ttinclude без установки флажков?

IL>Проверил. Все в единственном числе.


Еще раз перегенерил, теперь часть таблиц датаконтекста во множественном, часть в единственном, энтити классы — все в единственном.



    public partial class NorthwindDataContext : DbManager
    {
        public Table<AlphabeticalListOfProduct>  AlphabeticalListOfProduct    { get { return this.GetTable<AlphabeticalListOfProduct>();  } }
        public Table<Category>                   Category                     { get { return this.GetTable<Category>();                   } }
        public Table<CategorySalesFor1997>       CategorySalesFor1997         { get { return this.GetTable<CategorySalesFor1997>();       } }
        public Table<CurrentProductList>         CurrentProductLists          { get { return this.GetTable<CurrentProductList>();         } }
        public Table<CustomerAndSuppliersByCity> CustomerAndSuppliersByCities { get { return this.GetTable<CustomerAndSuppliersByCity>(); } }
        public Table<CustomerCustomerDemo>       CustomerCustomerDemos        { get { return this.GetTable<CustomerCustomerDemo>();       } }
        public Table<CustomerDemographic>        CustomerDemographic          { get { return this.GetTable<CustomerDemographic>();        } }
        public Table<Customer>                   Customer                     { get { return this.GetTable<Customer>();                   } }
        public Table<Employee>                   Employee                     { get { return this.GetTable<Employee>();                   } }
        public Table<EmployeeTerritory>          EmployeeTerritory            { get { return this.GetTable<EmployeeTerritory>();          } }
        public Table<Invoice>                    Invoice                      { get { return this.GetTable<Invoice>();                    } }
        public Table<OrderDetail>                OrderDetail                  { get { return this.GetTable<OrderDetail>();                } }
        public Table<OrderDetailsExtended>       OrderDetailsExtendeds        { get { return this.GetTable<OrderDetailsExtended>();       } }
        public Table<OrderSubtotal>              OrderSubtotal                { get { return this.GetTable<OrderSubtotal>();              } }
        public Table<Order>                      Order                        { get { return this.GetTable<Order>();                      } }
        public Table<OrdersQry>                  OrdersQries                  { get { return this.GetTable<OrdersQry>();                  } }
        public Table<ProductSalesFor1997>        ProductSalesFor1997          { get { return this.GetTable<ProductSalesFor1997>();        } }
        public Table<Product>                    Product                      { get { return this.GetTable<Product>();                    } }
        public Table<ProductsAboveAveragePrice>  ProductsAboveAveragePrices   { get { return this.GetTable<ProductsAboveAveragePrice>();  } }
        public Table<ProductsByCategory>         ProductsByCategories         { get { return this.GetTable<ProductsByCategory>();         } }
        public Table<QuarterlyOrder>             QuarterlyOrder               { get { return this.GetTable<QuarterlyOrder>();             } }
        public Table<Region>                     Regions                      { get { return this.GetTable<Region>();                     } }
        public Table<SalesByCategory>            SalesByCategories            { get { return this.GetTable<SalesByCategory>();            } }
        public Table<SalesTotalsByAmount>        SalesTotalsByAmounts         { get { return this.GetTable<SalesTotalsByAmount>();        } }
        public Table<Shipper>                    Shipper                      { get { return this.GetTable<Shipper>();                    } }
        public Table<SummaryOfSalesByQuarter>    SummaryOfSalesByQuarters     { get { return this.GetTable<SummaryOfSalesByQuarter>();    } }
        public Table<SummaryOfSalesByYear>       SummaryOfSalesByYears        { get { return this.GetTable<SummaryOfSalesByYear>();       } }
        public Table<Supplier>                   Supplier                     { get { return this.GetTable<Supplier>();                   } }
        public Table<Territory>                  Territory                    { get { return this.GetTable<Territory>();                  } }
    }
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.