Skip to content

Add a "set to null" delete action #2370

Open
@megafetis

Description

@megafetis
Set(p => p.SomeCollectionItems, m =>
            {
                m.Lazy(CollectionLazy.Lazy);
                m.Key(km =>
                {
                    km.ForeignKey("foregn_key_fk");
                    km.OnDelete(OnDeleteAction.Cascade); // how to: OnDeleteAction.SetToNull
                });
                m.Table("table_of_items");
            }, om => om.OneToMany(p => p.Class(typeof(ItemClass))));

It is usefull for schema action and generate schema with foregn keys with cascade action "SetToNull"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions