Skip to content

Multiple cascades should be combined #472

@horato

Description

@horato

Hello,

HasMany (OneToManyPart) allows you to specify multiple cascades by doing .Cascade.SaveUpdate().Cascade.Delete()

collectionAttributes.Set("Cascade", Layer.UserSupplied, current == null ? value : string.Format("{0},{1}", current, value));

HasOne (OneToOnePart) only takes the last cascade option specified.

cascade = new CascadeExpression<OneToOnePart<TOther>>(this, value => attributes.Set("Cascade", Layer.UserSupplied, value));

Is this by design or a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions