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.7+ce90b2cf6b782b8d7b7fd47b3c546987c652c00f
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