Class DataPointMapper
Data point mapper
Inherited Members
Namespace: IAI.DT.DataModel.Utilities
Assembly: IAI.DT.DataModel.dll
Syntax
public static class DataPointMapper
Methods
IsPropertySet<T>(T)
Check of the property has been set, ie. it is not null
Declaration
public static bool IsPropertySet<T>(T property)
Parameters
| Type | Name | Description |
|---|---|---|
| T | property |
Returns
| Type | Description |
|---|---|
| bool |
Type Parameters
| Name | Description |
|---|---|
| T |
Map<T>(Asset, T, bool, DateTime?, Sources?, string?, bool)
Map the data point into the sparse asset
Declaration
public static TypeMap Map<T>(Asset sparseAsset, T model, bool cleanSparseAsset = true, DateTime? mappingTime = null, Sources? source = null, string? user = null, bool overwrite = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Asset | sparseAsset | The sparse asset to add data to |
| T | model | The model that we are getting data points from |
| bool | cleanSparseAsset | Option to clean the sparse asset |
| DateTime? | mappingTime | Allows the caller to override the mapping time applied. |
| Sources? | source | Allows the caller to override the data source applied. |
| string | user | The user that produced the given value |
| bool | overwrite | When true matching values in the target should be overwritten |
Returns
| Type | Description |
|---|---|
| TypeMap |
Type Parameters
| Name | Description |
|---|---|
| T |