Class SoRole
Assembly: SoDataBase.BusinessLogic.dll
Syntax
public sealed class SoRole : NestedPersistFacade, INestedPersist
Constructors
SoRole(bool)
Declaration
public SoRole(bool initialize = true)
Parameters
| Type |
Name |
Description |
| bool |
initialize |
|
Properties
DataRightRows
Declaration
public DataRightRows DataRightRows { get; }
Property Value
IsDeleted
Gets a value indicating whether this instance is deleted.
Declaration
public override bool IsDeleted { get; }
Property Value
| Type |
Description |
| bool |
true if this instance is deleted; otherwise, false.
|
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 |
true if this instance is marked for delete; otherwise, false.
|
Overrides
Row
Declaration
public RoleRow Row { get; }
Property Value
Methods
DeleteAsync()
Declaration
public Task DeleteAsync()
Returns
GetFacadingItems()
Implement this method to expose items that needs to be persisted.
Declaration
protected override IEnumerable<INestedPersist> GetFacadingItems()
Returns
Overrides
GetRoleAsync(int, CancellationToken)
Declaration
public static Task<SoRole> GetRoleAsync(int roleId, CancellationToken cancellationToken = default)
Parameters
Returns
OnIdUpdateAsync()
Update related objects with correct id's to make sure that relations are consistent
before saving to the database.
Declaration
protected override Task OnIdUpdateAsync()
Returns
Overrides
OnPreIdUpdateAsync()
Allow for "fake id's" to be forced upon related objects.
Declaration
protected override Task OnPreIdUpdateAsync()
Returns
Overrides
Implements
Extension Methods