Show / Hide Table of Contents

Class WMOrganizationDTO

Data Transfer Object that implements the persistent data storage interface for the WMUser class.

Inheritance
object
DataTransferObject<WMOrganization>
WMOrganizationDTO
Implements
IDbEntity
IWMEntity
IWMResource
Inherited Members
DataTransferObject<WMOrganization>.ID
DataTransferObject<WMOrganization>.ModelObject
DataTransferObject<WMOrganization>.SetID(string)
DataTransferObject<WMOrganization>.CreateModel(WMPrincipal, DbContext, object[])
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Quantellia.WMServer.Auth.Model.UserAccess
Assembly: WMServer.dll
Syntax
public class WMOrganizationDTO : DataTransferObject<WMOrganization>, IDbEntity, IWMEntity, IWMResource

Constructors

WMOrganizationDTO()

Declaration
public WMOrganizationDTO()

WMOrganizationDTO(WMOrganization)

Declaration
public WMOrganizationDTO(WMOrganization modelObj)
Parameters
Type Name Description
WMOrganization modelObj

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
Type Description
string

CreatedDate

Date and time at which this entity was last updated.

Declaration
public DateTime CreatedDate { get; set; }
Property Value
Type Description
DateTime

LastUpdatedBy

ID of the user that last updated this entity.

Declaration
public string LastUpdatedBy { get; set; }
Property Value
Type Description
string

LastUpdatedDate

Date and time at which this entity was last updated.

Declaration
public DateTime LastUpdatedDate { get; set; }
Property Value
Type Description
DateTime

Name

The actual name of the user

Declaration
public string? Name { get; set; }
Property Value
Type Description
string

Status

Declaration
public PrincipalStatus Status { get; set; }
Property Value
Type Description
PrincipalStatus

Methods

FromModel()

Write data from the associated ModelObject. If this is null, does nothing.

Declaration
public override void FromModel()
Overrides
DataTransferObject<WMOrganization>.FromModel()
Exceptions
Type Condition
NotImplementedException

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
Type Name Description
WMPrincipal principal

The user or organization.

string ID

The ID of the organization to retrieve.

AuthDbContext context
Returns
Type Description
Task<WMOrganizationDTO>

Get(string, AuthDbContext?)

Declaration
public static Task<WMOrganizationDTO> Get(string id, AuthDbContext? context = null)
Parameters
Type Name Description
string id
AuthDbContext context
Returns
Type Description
Task<WMOrganizationDTO>

ResourceDefinition()

The resource operation definition for this asset.

Declaration
public static WMResourceOperationsDefinition ResourceDefinition()
Returns
Type Description
WMResourceOperationsDefinition

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
Type Name Description
WMPrincipal principal
DbContext context
object[] data
Returns
Type Description
Task<WMOrganization>
Overrides
DataTransferObject<WMOrganization>.UpdateModel(WMPrincipal, DbContext, object[])
Exceptions
Type Condition
NotImplementedException

Implements

IDbEntity
IWMEntity
IWMResource
In this article
Back to top Copyright © 2025 Quantellia LLC.    Version 2.0.0 Revision 399     Last Updated 1/15/2025    DRAFT DOCUMENTATION. SUBJECT TO CHANGE