Class ModuleLicenseLinkBase<TLinkRow>
Wrapper for LicenseSatLinkRow supporting to assign and un-assign module licenses to satellites
Inheritance
Implements
Inherited Members
Namespace: SuperOffice.License
Assembly: SoDataBase.dll
Syntax
public abstract class ModuleLicenseLinkBase<TLinkRow> : NestedPersistFacade, INestedPersist where TLinkRow : TableRowBase
Type Parameters
| Name | Description |
|---|---|
| TLinkRow |
Constructors
ModuleLicenseLinkBase(ModuleLicenseRow)
Default constructor.
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
| Type | Description |
|---|---|
| bool |
CanAssign
Can the license be assigned
Declaration
public bool CanAssign { get; }
Property Value
| Type | Description |
|---|---|
| bool |
InUse
How many licenses are in use.
Declaration
public int InUse { get; }
Property Value
| Type | Description |
|---|---|
| int |
IsDeleted
Gets a value indicating whether this instance is deleted.
Declaration
public override bool IsDeleted { get; }
Property Value
| Type | Description |
|---|---|
| bool |
|
Overrides
IsDirty
Is the object dirty?
Declaration
public override bool IsDirty { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
IsMarkedForDelete
Gets or sets a value indicating whether this instance is marked for delete.
Declaration
public override bool IsMarkedForDelete { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
|
Overrides
License
Get the module license itself
Declaration
public ModuleLicenseRow License { get; }
Property Value
| Type | Description |
|---|---|
| ModuleLicenseRow |
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
| Type | Description |
|---|---|
| string |
SortOrder
The sort order for the license
Declaration
public int SortOrder { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
GetFacadingItems()
Implement this method to expose items that needs to be persisted.
Declaration
protected override IEnumerable<INestedPersist> GetFacadingItems()
Returns
| Type | Description |
|---|---|
| IEnumerable<INestedPersist> | Collection of items that needs to be persisted. |
Overrides
SetParentId(int)
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 |
|---|---|---|
| int | parentId | Primary key of the parent (i.e. associate or satellite) |
ToString()
Wrapper for LicenseSatLinkRow supporting to assign and un-assign module licenses to satellites
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |