Dbml - how can I set deleterule.cascade to an association?
LINQ
1
Posts
1
Posters
2
Views
1
Watching
-
Hello! Since Datacontext provides the Method
Datacontext.CreateDatabase()
I can design my SQLServer-Databases within the Linq2SQL-Dataclass-Designer. But in the Designer - how can I define, that an added association shall get cascading delete-behaviour? As workaround I can add in designer-code the param"DeleteRule=Cascade"
to theAssociationAttribute
of the affected Properties of my DataClasses - and it works (Datacontext.CreateDatabase()
sets up the SQLServer-Database with cascading delete-behaviour) But can that be "state of art"?