Tried as you suggested
destEnt.Fields(Destination.WarehouseFieldIndex.WarehouseId).ForcedCurrentValueWrite(1)
destEnt.Fields(Destination.WarehouseFieldIndex.WarehouseId).IsChanged = True
but the generated insert query does not include the column and the sqlexception is
Explicit value must be specified for identity column in table 'WHSE' either when IDENTITY_INSERT is set to ON or ........
If I manually change the readonly argument
FROM
Private Sub InitWarehouseEntityInfos()
MyBase.AddElementFieldInfo("WarehouseEntity", "WarehouseId", GetType(System.Int32), True, False, True, False, CInt(WarehouseFieldIndex.WarehouseId), 0, 0, 10)
TO
Private Sub InitWarehouseEntityInfos()
MyBase.AddElementFieldInfo("WarehouseEntity", "WarehouseId", GetType(System.Int32), True, False, False, False, CInt(WarehouseFieldIndex.WarehouseId), 0, 0, 10)
it works. If the designer didn't disable the readonly flag on the properties I'd be golden. Is there another way?