...
The SoftDelete module requires the IsDeleted flag to be added to the ContentItems table. This can be done with the script at /Areas/Lynicon.Base/Admin/SQL/SoftDeleteInit.sql.
Configuring the SoftDelete module
Code Block | ||
---|---|---|
| ||
.UseModule<SoftDelete>((Func<Type, bool>)(t => !(new Type[] { typeof(User), typeof(Cafe), typeof(AlternateUrlsContent) }.Contains(t)))) |
The SoftDelete model has one parameter on intialisation as shown above, this is the applyToType parameter which is a function from type to bool which is true for any content type on which the module should provide soft deletion functionality.
Ensuring a content type is soft deleted
...