Class MasterDataAttribute
Represents an master data attribute.
Inheritance
MasterDataAttribute
Implements
Namespace: BiExcellence.OpenBi.Api.Commands.MasterData
Assembly: BiExcellence.OpenBi.Api.MasterData.dll
Syntax
public class MasterDataAttribute : IMasterDataAttribute, ITableAttribute, ICustomAttributes
Constructors
MasterDataAttribute(ITableAttribute, string)
Initializes a new instance of the MasterDataAttribute class.
Declaration
public MasterDataAttribute(ITableAttribute tableAttribute, string text)
Parameters
Type | Name | Description |
---|---|---|
ITableAttribute | tableAttribute | The table attribute to wrap. |
string | text | The text. |
Properties
CustomAttributes
Gets or sets the custom attributes.
Declaration
public IDictionary<string, object?> CustomAttributes { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, object> |
DefaultValue
Gets or sets the default value.
Declaration
public object? DefaultValue { get; set; }
Property Value
Type | Description |
---|---|
object |
DefaultValues
Gets or sets the default values.
Declaration
public Array? DefaultValues { get; set; }
Property Value
Type | Description |
---|---|
Array |
Remarks
To remove all values set it to an empty array.
IsExclusive
Gets or sets whether the default values are exclusive.
Declaration
public bool IsExclusive { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsMultiple
Gets or sets whether the attribute is multiple.
Declaration
public bool IsMultiple { get; set; }
Property Value
Type | Description |
---|---|
bool |
Length
Gets or sets the optional length.
Declaration
public int? Length { get; set; }
Property Value
Type | Description |
---|---|
int? |
Table
Gets the table name.
Declaration
public string Table { get; }
Property Value
Type | Description |
---|---|
string |
Methods
Deserialize(string?)
Deserializes the object based on the Type.
Declaration
public object? Deserialize(string? obj)
Parameters
Type | Name | Description |
---|---|---|
string | obj | The obejct. |
Returns
Type | Description |
---|---|
object | The deserialized object. |
Deserialize(JsonElement)
Deserializes the json element based on the Type.
Declaration
public object? Deserialize(JsonElement element)
Parameters
Type | Name | Description |
---|---|---|
JsonElement | element | The json element. |
Returns
Type | Description |
---|---|
object | The deserialized object. |
Serialize(object?)
Declaration
public string? Serialize(object? obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The obejct. |
Returns
Type | Description |
---|---|
string | The serialized string. |