[英]Lightspeed database-first tables with plural and singular generating same entity names
I am using Oracle
and LightSpeed Orm
and generating model from database. 我正在使用
Oracle
和LightSpeed 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.