Defines behavior of soft-cascade actions.
Namespace: NHibernate.Mapping.ByCodeAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
| C# |
|---|
[FlagsAttribute] public enum Cascade |
| Visual Basic |
|---|
<FlagsAttribute> _ Public Enumeration Cascade |
| Visual C++ |
|---|
[FlagsAttribute] public enum class Cascade |
Members
| Member name | Value | Description | |
|---|---|---|---|
| None | 0 | ||
| Persist | 2 | ||
| Refresh | 4 | ||
| Merge | 8 | ||
| Remove | 16 | ||
| Detach | 32 | ||
| ReAttach | 64 | ||
| DeleteOrphans | 128 | ||
| All | 256 | ||
| Has | |||
| Include | |||
| Exclude | |||
| ToCascadeString | |||
| IsIn | Apply an "in" constraint to the named property Note: throws an exception outside of a QueryOver expression | ||
| IsIn | Apply an "in" constraint to the named property Note: throws an exception outside of a QueryOver expression | ||
| IsBetween | Apply a "between" constraint to the named property Note: throws an exception outside of a QueryOver expression | ||
| IsProxy | |||
| As | |||
| ToTypeParameters |
Remarks
To check the content or to include/exclude values, from cascade, is strongly recommanded the usage of extensions methods defined in CascadeExtensions