语境。我想将运输表分成两个表,第一个表用于有关最常用的运输的一般数据,第二个表用于使用选择器字段 RecordType 将取货地址和目的地地址存储在不同的记录中,以便检索仅在需要时提供地址信息。为此,我创建了三个实体,用于运输一般信息的实体 Move、实体取货地址和实体目的地地址,最后两个实体有一个附加字段“地址类型”来区分哪个是取货,哪个是目的地. 通过模型中的映射详细信息屏幕,我将两个实体、PickupAddress 和 DestinationAddress 映射到同一个表 MoveAddresses,PickupAddress 的代码记录类型 =”P” 和 DestinationAddress 的条件记录类型 = “D”。当我重建数据层解决方案时,出现以下错误
Error 2 Error 3032: Problem in mapping fragments starting at line 625: Condition member 'MoveAddresses.AddressType' with a condition other than 'IsNull=False' is mapped. Either remove the condition on DestinationAddresses.AddressType or remove it from the mapping.
Error 4 Error 3033: Problem in mapping fragments starting at line 647: EntitySets 'PickupAddresses' and 'DestinationAddresses' are both mapped to table 'MoveAddresses'. Their primary keys may collide.