Class NovaRazorUnit
A proxy for a Noxum.Nova.Data.Cache.CachedUnit to be used in Razor Views
Inherited Members
Namespace: Noxum.Nova.Razor.Model
Assembly: Noxum.Nova.Razor.Model.dll
Syntax
public sealed class NovaRazorUnit : NovaRazorObject<CachedUnit>, IReadOnlyCollection<NovaRazorValue>, IEnumerable<NovaRazorValue>, IEnumerable
Properties
BaseFactor
The base factor (default decimal.One)
Declaration
public decimal BaseFactor { get; }
Property Value
| Type | Description |
|---|---|
| decimal |
BaseOffset
The base offset (default decimal.Zero)
Declaration
public decimal BaseOffset { get; }
Property Value
| Type | Description |
|---|---|
| decimal |
UNUOM
The UNUOM code (United Nations Units Of Measure)
Declaration
public string UNUOM { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
GetSymbol()
Get the localized symbol for this unit including language fallbacks. The fallback is using Noxum.Nova.Data.Cache.CachedLanguage.FallbackLanguageRef or English as the last resort.
Declaration
public string GetSymbol()
Returns
| Type | Description |
|---|---|
| string |
GetSymbol(ObjId)
Get the localized symbol for this unit including language fallbacks. The fallback is using Noxum.Nova.Data.Cache.CachedLanguage.FallbackLanguageRef or English as the last resort.
Declaration
public string GetSymbol(ObjId preferredLanguageId)
Parameters
| Type | Name | Description |
|---|---|---|
| ObjId | preferredLanguageId |
Returns
| Type | Description |
|---|---|
| string |