我有两个实体f <- read.csv("storm_data_search_results.csv", header = TRUE, sep = ",")
forder <- f[order(as.Date(f$BEGIN_DATE, format="%m")),]
hist(forder$BEGIN_DATE)
和Customer
是一对一的关系。客户有Address
,地址有ID, AddressId, Name
。每当我调用ID and AddressName
时,元数据关联都会出现:
entityType.AddUnidirectionalNavigation(propertyOnEntity, propertyOnTargetEntity);
主要角色不应该<Association Name="K2SmartObjects_Customer_Address_K2SmartObjects_Address_Customer">
<End Type="K2SmartObjects.Address" Role="Address" Multiplicity="0..1"/>
<End Type="K2SmartObjects.Customer" Role="Customer" Multiplicity="0..1"/>
<ReferentialConstraint>
<Principal Role="Customer">
<PropertyRef Name="ID"/>
</Principal>
<Dependent Role="Address">
<PropertyRef Name="ID"/>
</Dependent>
</ReferentialConstraint>
</Association>
作为AddressId
吗?