Override Id in descendant?

If I have an abstract entity

  [AbstractEntity]
  [AutoMapping]
  [Id('FId', TIdGenerator.IdentityOrSequence)]
  TSMXBaseEntity = class
  end

Can I override the Id Attribute in a descendant?

  [Entity]
  [AutoMapping]
  [Id('FId', TIdGenerator.None)]
  TSMXBaseEntity = class
  end

Thanks.

We don't have tests for such behavior. But by reading the existing source code, yes, it should work for the Id attribute.

Thanks. I'll will give it a go as it is only occasionally I need to override. For now though, I've just pushed everything into the descendants. I'll leave this open and when I have had a chance to try it out I'll post back here.

1 Like