Locking Strategy
Name in Migrated Code: Rowlocking
Location in Migrated Code: OnLoad Method

Migrated Code Example
Immediate example :
protected override void OnLoad()
{
RowLocking = LockingStrategy.OnRowLoading;
ReevaluateBindValueAndRelationsOnEnterRow = true;
View = () => new Views.ShowOrdersView(this);
}
On Modify example:
protected override void OnLoad()
{
RowLocking = LockingStrategy.OnUserEdit;
View = () => new Views.ShowOrdersView(this);
}
Property Values
| Magic Name | Migrated Code Name |
|---|---|
| No Lock | None |
| Immediate | OnRowLoading |
| Before Update | OnRowSaving |
| On Modify | OnUserEdit |
The default is Locking strategy = No Lock in Magic
Note
Note: The migrated code will not write the RowLocking property if no locking is required.
The RowLocking property will be written whenever a locking is used - even if it was the default in magic.
It does that to explicitly indicate that there is locking.
See Also:
For a deeper explanation of locking please refer to the row locking article
Help us improve, Edit this page on GitHub
or email us at info@fireflymigration.com