Show / Hide Table of Contents

Class ModuleLicenseOwnerBase<TLink, TLinkRow>

Inheritance
object
NestedPersist
NestedPersistFacade
ModuleLicenseOwnerBase<TLink, TLinkRow>
AssociateModuleLicenseOwner
SatelliteModuleLicenseOwner
Implements
INestedPersist
Inherited Members
NestedPersistFacade.OnPrimaryKeyRequestAsync(PKContainer)
NestedPersistFacade.OnPrimaryKeyUpdateAsync(PKContainer)
NestedPersistFacade.OnIdUpdateAsync()
NestedPersistFacade.OnSaveAsync(BatchSave)
NestedPersist._saveOwner
NestedPersist._isSaving
NestedPersist.SetSaveOwner(INestedPersist)
NestedPersist.SaveAsync()
NestedPersist.IsSaving
NestedPersist.IsMarkedForDelete
NestedPersist.OnElementSaved
NestedPersist.OnElementIdUpdate
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.License
Assembly: SoDataBase.dll
Syntax
public abstract class ModuleLicenseOwnerBase<TLink, TLinkRow> : NestedPersistFacade, INestedPersist where TLink : ModuleLicenseLinkBase<TLinkRow> where TLinkRow : TableRowBase
Type Parameters
Name Description
TLink
TLinkRow

Constructors

ModuleLicenseOwnerBase(ModuleOwnerRow, int)

Declaration
public ModuleLicenseOwnerBase(ModuleOwnerRow owner, int parentId)
Parameters
Type Name Description
ModuleOwnerRow owner
int parentId

Properties

IsDeleted

Allways return false.

Declaration
public override bool IsDeleted { get; }
Property Value
Type Description
bool
Overrides
NestedPersist.IsDeleted

IsDirty

Return true if any of the encapsulated LicenseSatLinkRows are dirty.

Declaration
public override bool IsDirty { get; }
Property Value
Type Description
bool
Overrides
NestedPersistFacade.IsDirty

this[int]

Find a module from it's module id

Declaration
public TLink this[int moduleId] { get; }
Parameters
Type Name Description
int moduleId
Property Value
Type Description
TLink

License for a module

this[string]

Find a module from its name.

Declaration
public TLink this[string moduleName] { get; }
Parameters
Type Name Description
string moduleName

Name of the module

Property Value
Type Description
TLink

License for a module

Modules

Declaration
public IEnumerable<TLink> Modules { get; }
Property Value
Type Description
IEnumerable<TLink>

Owner

Declaration
public ModuleOwnerRow Owner { get; }
Property Value
Type Description
ModuleOwnerRow

Methods

GetFacadingItems()

Enumerator over all SatelliteModuleLicenseLink objects.

Declaration
protected override IEnumerable<INestedPersist> GetFacadingItems()
Returns
Type Description
IEnumerable<INestedPersist>
Overrides
NestedPersistFacade.GetFacadingItems()

OnPreIdUpdateAsync()

Allow for "fake id's" to be forced upon related objects.

Declaration
protected override Task OnPreIdUpdateAsync()
Returns
Type Description
Task
Overrides
NestedPersistFacade.OnPreIdUpdateAsync()
Remarks

In order to figure out which objects taking part of the nested save operation that actually needs to be saved, this method allows for "fake id's" to be forced upon related objects. Upon receiving the "fake id", the objects receiving such an id can determine if they needs to be persisted (e.g. saved) to the database. However, the fake id's forced upon related objects must be set to correct id's in the OnIdUpdate method taking place later in the save operation.

OnSavedAsync(bool)

Called after the save operation has completed. A boolean value is passed to notify whether or not the save operation succeeded. The complete save operation is rolled back if Save operation failed.

Declaration
protected override Task OnSavedAsync(bool bSucceeded)
Parameters
Type Name Description
bool bSucceeded

True if the save operation succeeded and false if the save operation failed and rolled back.

Returns
Type Description
Task
Overrides
NestedPersistFacade.OnSavedAsync(bool)

Implements

INestedPersist

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top