简体   繁体   English

Lightspeed-database-first表,具有复数和单数生成相同的实体名称

[英]Lightspeed database-first tables with plural and singular generating same entity names

I am using Oracle and LightSpeed Orm and generating model from database. 我正在使用OracleLightSpeed Orm并从数据库生成模型。

It seems there is an issue while creating tables that are both plural and singular. 创建同时具有复数和单数的表时似乎存在问题。

I am getting an error Error 2 Ambiguous moniker '/Ecom/ClaimType' encountered. It is used for both 'ClaimType' and 'ClaimType'. 我收到错误Error 2 Ambiguous moniker '/Ecom/ClaimType' encountered. It is used for both 'ClaimType' and 'ClaimType'. Error 2 Ambiguous moniker '/Ecom/ClaimType' encountered. It is used for both 'ClaimType' and 'ClaimType'.

In this specific instance it's tables CLAIM_TYPE and CLAIM_TYPES that get same (ClaimType) entity generated. 在此特定实例中,表CLAIM_TYPE和CLAIM_TYPES生成相同的(ClaimType)实体。

How do I generate two different entities for these? 如何为这些生成两个不同的实体?

This came back from lightspeed support: 这来自lightspeed支持:

You will need to split this into two separate model files. 您将需要将其拆分为两个单独的模型文件。 We require entities to be uniquely named in a single model. 我们要求实体在单个模型中唯一地命名。

J. J.

(Which imho is ridiculous solution) (哪个恕我直言是荒谬的解决方案)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 实体框架数据库优先:从同一个表中访问 2 个外键名称 - Entity Framework database-first: accessing 2 foreign keys names from same table 一对一成为一对多的实体框架,首先生成数据库 - One-to-one becomes one-to-many Entity Framework generating database-first 对数据库优先实体框架模型的更改 - Changes to a database-first Entity Framework model 是否存在实体框架7数据库优先POCO生成器? - Is there an Entity Framework 7 Database-First POCO Generator? 实体框架数据库优先-SQL Server - Entity Framework database-first with SQL Server 实体框架6,数据库优先和自定义多元化 - Entity Framework 6, Database-First & Custom Pluralization 实体框架代码第一个表命名问题,复数形式的单数冲突 - Entity Framework Code First table naming issue, singular confilcts with Plural 实体框架(Database-First)与同一个表命名约定控件的多个关系 - Entity Framework (Database-First) multiple relations to same table naming conventions control 首先使用实体​​框架数据库对结果进行预过滤 - Pre-filtering results with entity framework database-first 元数据属性未在数据库优先实体框架中应用 - Metadata attributes not being applied in Database-First Entity Framework
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM