Class ModuleLicenseLinkBase<TLinkRow>
Wrapper for supporting to assign and un-assign module licenses to satellites
Inheritance
ModuleLicenseLinkBase<TLinkRow>
Assembly: SoDataBase.dll
Syntax
public abstract class ModuleLicenseLinkBase<TLinkRow> : NestedPersistFacade, INestedPersist where TLinkRow : TableRowBase
Type Parameters
Name |
Description |
TLinkRow |
|
Constructors
ModuleLicenseLinkBase(ModuleLicenseRow)
Declaration
public ModuleLicenseLinkBase(ModuleLicenseRow license)
Parameters
Type |
Name |
Description |
ModuleLicenseRow |
license |
Module that can be linked (i.e. assigned) to a satellite.
|
Properties
Assigned
Assign a module license to a satellite.
Declaration
public abstract bool Assigned { get; set; }
Property Value
CanAssign
Can the license be assigned
Declaration
public bool CanAssign { get; }
Property Value
InUse
How many licenses are in use.
Declaration
public int InUse { get; }
Property Value
IsDeleted
Declaration
public override bool IsDeleted { get; }
Property Value
Overrides
IsDirty
Declaration
public override bool IsDirty { get; }
Property Value
Overrides
IsMarkedForDelete
Declaration
public override bool IsMarkedForDelete { get; set; }
Property Value
Overrides
License
Get the module license itself
Declaration
public ModuleLicenseRow License { get; }
Property Value
Link
Get the Module license link row
Declaration
public TLinkRow Link { get; }
Property Value
Type |
Description |
TLinkRow |
|
PrerequisiteModuleName
ToDo: remove this field when it is in the database row.
Declaration
public string PrerequisiteModuleName { get; }
Property Value
SortOrder
The sort order for the license
Declaration
public int SortOrder { get; }
Property Value
Methods
GetFacadingItems()
Declaration
protected override IEnumerable<INestedPersist> GetFacadingItems()
Returns
Overrides
SetParentId(Int32)
Set the parent id. This can be either an associate or a satellite, depending on the implementation
Declaration
protected abstract void SetParentId(int parentId)
Parameters
Type |
Name |
Description |
Int32 |
parentId |
Primary key of the parent (i.e. associate or satellite)
|
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements
Extension Methods
EnumUtil.MapEnums<From, To>(From)