Association on parent delete cascade

Hi all,

on relationship options I set on parent delete - cascade and export to aurelius classes.

Below the produced code

    [Association([TAssociationProp.Lazy], CascadeTypeAll - [TCascadeType.Remove])]
    [JoinColumn('PERFORMANCEID', [], 'PERFORMANCEID')]
    FPERFORMANCEID: Proxy<TPERFORMANCE>;

However at sql server the relationship that is created on delete rule has none and no cascade that it should be.


As a consequence when I delete the master record I got an relationship error from sql server.

Is this a bug, or my misundestanding?

Regards,
Nikos


TMS Aurelius doesn't create foreign keys with ON DELETE CASCADE.

The TCascadeType.Remove simply indicates if Aurelius itself should delete the associated record in PERFORMANCE table if the parent object is deleted. Aurelius does it manually.
If you removed TCascadeType.Remove from the Association, you will have to do it yourself.