Class WMOrganizationDTO
Inheritance
WMOrganizationDTO
Assembly: WMServer.dll
Syntax
public class WMOrganizationDTO : DataTransferObject<WMOrganization>, IDbEntity, IWMEntity
Constructors
WMOrganizationDTO()
Declaration
public WMOrganizationDTO()
WMOrganizationDTO(WMOrganization)
Declaration
public WMOrganizationDTO(WMOrganization modelObj)
Parameters
WMOrganizationDTO(string)
Constructor that initializes the ID.
Declaration
public WMOrganizationDTO(string id)
Parameters
Type |
Name |
Description |
string |
id |
|
Properties
CreatedBy
ID of the user that created this entity.
Declaration
public string CreatedBy { get; set; }
Property Value
CreatedDate
Date and time at which this entity was last updated.
Declaration
public DateTime CreatedDate { get; set; }
Property Value
LastUpdatedBy
ID of the user that last updated this entity.
Declaration
public string LastUpdatedBy { get; set; }
Property Value
LastUpdatedDate
Date and time at which this entity was last updated.
Declaration
public DateTime LastUpdatedDate { get; set; }
Property Value
LoginName
Declaration
public string LoginName { get; set; }
Property Value
Name
The actual name of the user
Declaration
public string? Name { get; set; }
Property Value
Password
Password used for authentication
Declaration
public string Password { get; set; }
Property Value
Salt
Salt for hashing the password.
Declaration
public string Salt { get; set; }
Property Value
Status
Declaration
public PrincipalStatus Status { get; set; }
Property Value
Methods
FromModel()
Write data from the associated ModelObject. If this is null, does nothing.
Declaration
public override void FromModel()
Overrides
Exceptions
Get(WMPrincipal, string, AuthDbContext?)
Returns the WMOrganizationDTO with the specified ID if it exists, ensures ownership of the principal.
Declaration
public static Task<WMOrganizationDTO> Get(WMPrincipal principal, string ID, AuthDbContext? context = null)
Parameters
Returns
Get(string, AuthDbContext?)
Declaration
public static Task<WMOrganizationDTO> Get(string id, AuthDbContext? context = null)
Parameters
Returns
UpdateModel(WMPrincipal, DbContext, object[]?)
Read data from this DTO and write it to the Model Object.
Declaration
public override Task<WMOrganization> UpdateModel(WMPrincipal principal, DbContext context, object[]? data)
Parameters
Returns
Overrides
Exceptions
Implements