首页 > 其他分享 >The entity type 'Vehicle' cannot be configured as owned because it has already been config

The entity type 'Vehicle' cannot be configured as owned because it has already been config

时间:2022-11-15 14:35:02浏览次数:49  
标签:non because configured owned entity Vehicle type

System.InvalidOperationException: The entity type 'Vehicle' cannot be configured as owned because it has already been configured as a non-owned. If you want to override previous configuration first remove the entity type from the model by calling 'Ignore'.  

 

 

System.InvalidOperationException: The navigation 'VehicleType.Vehicles' is not supported because it is pointing to an owned entity type 'Vehicle'. Only the ownership navigation from the entity type 'VehicleOwnership' can point to the owned entity type. See https://aka.ms/efcore-docs-owned for more information.

 

标签:non,because,configured,owned,entity,Vehicle,type
From: https://www.cnblogs.com/chucklu/p/16892307.html

相关文章