ModelGenericModifiers Class

Contains a number of extension methods that MobileTrack interfaces often use to modify their fields. These methods are intended to be re-used over and over to prevent bugs and repeated code.

Definition

Namespace: MobileTrack.Common.Extensions
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public static class ModelGenericModifiers
Inheritance
Object    ModelGenericModifiers

Methods

RevertDeletion Reverts the soft deletion of an item.
SetDeletedNow(IIsSoftDeletable, AccountDto) Set item as soft deleted.
SetDeletedNow(IIsSoftDeletable, Guid) Set item as soft deleted.
SetLicenseActive Set item's license as active
SetLicenseExpired Set item's license as expired
SetLockedNow Set item as locked
SetModifiedNow Change modified by stats to DateTime.UtcNow
SetUnlocked Set item as unlocked
TrimLabel Trim the label of IIdLabel object.

See Also