#
isidro
I'm building a new module and I’m stuck with a class in my domain that has a composite-id. Here’s part of the mapping file
< composite-id name="_Id" >
< key-property name="_TEquipamentoId" column="T_Equipamento_ID" type="Int32" / >
< key-property name="_TVeiculoId" column="T_Veiculo_ID" type="Int32" / >
< / composite-id>
…
I’m always getting this error:
collection foreign key mapping has wrong number of columns: Cuyahoga.Modules.IsiWebAuto.Domain.TVeiculoEquipamento._ListTVeiculoEquipamento type: IdTVeiculoEquipamento
Does anyone know how can I solve it? I’ve been reading that composite-ids are now that well behaviored, but I’ve used in some projects (not Cuyahoga) with success so I would like to use them here too.
Best regards,
Rui Isidro
< composite-id name="_Id" >
< key-property name="_TEquipamentoId" column="T_Equipamento_ID" type="Int32" / >
< key-property name="_TVeiculoId" column="T_Veiculo_ID" type="Int32" / >
< / composite-id>
…
I’m always getting this error:
collection foreign key mapping has wrong number of columns: Cuyahoga.Modules.IsiWebAuto.Domain.TVeiculoEquipamento._ListTVeiculoEquipamento type: IdTVeiculoEquipamento
Does anyone know how can I solve it? I’ve been reading that composite-ids are now that well behaviored, but I’ve used in some projects (not Cuyahoga) with success so I would like to use them here too.
Best regards,
Rui Isidro