Class OpenDIModel
Open DI representation of a WMModelBase.
Inherited Members
Namespace: Quantellia.WMServer.OpenDI
Assembly: WMServer.dll
Syntax
public class OpenDIModel : OpenDIAsset
Constructors
OpenDIModel()
Default constructor
Declaration
public OpenDIModel()
OpenDIModel(WMModelBase)
Constructor that initializes a new instance with the data from a WMModelBase object.
Declaration
public OpenDIModel(WMModelBase asset)
Parameters
| Type | Name | Description |
|---|---|---|
| WMModelBase | asset | The asset with which to initialize this OpenDIModel |
Properties
RegisteredType
The string used to register this data source type in RegisterWMModelType(string, Type)
Declaration
public string? RegisteredType { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
SourceFormat
Indicates what format the source string is in.
Declaration
public string? SourceFormat { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
SourceMode
Indicates how to interpret the source string.
Declaration
public string? SourceMode { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
SourceString
The source string containing a decision tree.
Declaration
public string? SourceString { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
ToDTODefault()
Create a new IWMAssetBaseDTO object that contains the properties of this OpenDIAsset. Throws an exception if null values without default are encountered.
Declaration
public WMModelBaseDTO ToDTODefault()
Returns
| Type | Description |
|---|---|
| WMModelBaseDTO | A IWMAssetBaseDTO object that contains the properties (or default values) of this OpenDIAsset |
ToDTOPartial()
Create a new IWMAssetBaseDTO object that contains only the properties of this OpenDIAsset with no defaults.
Declaration
public WMModelBaseDTO ToDTOPartial()
Returns
| Type | Description |
|---|---|
| WMModelBaseDTO | A IWMAssetBaseDTO object that contains the properties of this OpenDIAsset |