![](/img/trans.png)
[英]Entity Framework database-first: accessing 2 foreign keys names from same table
[英]Lightspeed database-first tables with plural and singular generating same entity names
我正在使用Oracle
和LightSpeed Orm
並從數據庫生成模型。
創建同時具有復數和單數的表時似乎存在問題。
我收到錯誤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'.
在此特定實例中,表CLAIM_TYPE和CLAIM_TYPES生成相同的(ClaimType)實體。
如何為這些生成兩個不同的實體?
這來自lightspeed支持:
您將需要將其拆分為兩個單獨的模型文件。 我們要求實體在單個模型中唯一地命名。
J.
(哪個恕我直言是荒謬的解決方案)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.