Show / Hide Table of Contents

Class SimulationRunDTO

DTO class for SimulationRun

Inheritance
object
DataTransferObject<SimulationRun>
SimulationRunDTO
Implements
IDbEntity
IWMEntity
IDocumentedEntity
Inherited Members
DataTransferObject<SimulationRun>.ID
DataTransferObject<SimulationRun>.ModelObject
DataTransferObject<SimulationRun>.SetID(string)
DataTransferObject<SimulationRun>.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.Simulation
Assembly: WMServer.dll
Syntax
public class SimulationRunDTO : DataTransferObject<SimulationRun>, IDbEntity, IWMEntity, IDocumentedEntity

Constructors

SimulationRunDTO()

Parameterless constructor

Declaration
public SimulationRunDTO()

SimulationRunDTO(string)

Constructor specifying id

Declaration
public SimulationRunDTO(string ID)
Parameters
Type Name Description
string ID

Properties

CreatedBy

Creator of this object

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

CreatedDate

The date this object was created

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

Documentation

Documentation of this object

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

DocumentationMIMEType

Documentation of this object in MIME format

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

LastUpdatedBy

The person who updated this object

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

LastUpdatedDate

The last date of update for this object

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

Name

Name of this object

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

OwnerID

Owner of this object

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

OwnerType

The type of the principal of this object.

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

SimulationID

id of the SimulationDTO this run is under.

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

Summary

Summary of this object

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

Methods

FromModel()

Declaration
public override void FromModel()
Overrides
DataTransferObject<SimulationRun>.FromModel()

Get(WMPrincipal, string, WMAppDbContext)

Returns SimulationRunDTO with id, throws exception if does not exist.

Declaration
public static Task<SimulationRunDTO> Get(WMPrincipal principal, string id, WMAppDbContext context)
Parameters
Type Name Description
WMPrincipal principal
string id

The id of the entity

WMAppDbContext context
Returns
Type Description
Task<SimulationRunDTO>
Exceptions
Type Condition
Exception

GetAllRuns(WMPrincipal, string, WMAppDbContext)

Returns all SimulationRunDTO instances under the provided Simulation in OpenDI format

Declaration
public static Task<IEnumerable<SimulationRunDTO>> GetAllRuns(WMPrincipal principal, string id, WMAppDbContext context)
Parameters
Type Name Description
WMPrincipal principal

The current user

string id

The id of the simulation record to search under.

WMAppDbContext context
Returns
Type Description
Task<IEnumerable<SimulationRunDTO>>

GetAllRuns(string, WMAppDbContext)

Returns all SimulationRunDTO instances under the provided Simulation

Declaration
public static Task<IEnumerable<SimulationRunDTO>> GetAllRuns(string ID, WMAppDbContext context)
Parameters
Type Name Description
string ID

The id of the simulation record to search under.

WMAppDbContext context
Returns
Type Description
Task<IEnumerable<SimulationRunDTO>>

UpdateModel(WMPrincipal, DbContext, object[]?)

Declaration
public override Task<SimulationRun> UpdateModel(WMPrincipal principal, DbContext context, object[]? data = null)
Parameters
Type Name Description
WMPrincipal principal
DbContext context
object[] data
Returns
Type Description
Task<SimulationRun>
Overrides
DataTransferObject<SimulationRun>.UpdateModel(WMPrincipal, DbContext, object[])

Implements

IDbEntity
IWMEntity
IDocumentedEntity
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