Class TableAttribute
Represents a base class for all table attribute implementations.
Inheritance
Implements
Namespace: BiExcellence.OpenBi.Api.Commands.TableAttributes
Assembly: BiExcellence.OpenBi.Api.TableAttribute.dll
Syntax
public abstract class TableAttribute : ITableAttribute, ICustomAttributes
Constructors
TableAttribute(string, string, string, string)
Initializes a new instance of the TableAttribute class.
Declaration
protected TableAttribute(string id, string type, string table, string name)
Parameters
Type | Name | Description |
---|---|---|
string | id | The id. |
string | type | The type. |
string | table | The table name. |
string | name | The name. |
TableAttribute(string, string, string)
Initializes a new instance of the TableAttribute class with a new id.
Declaration
protected TableAttribute(string type, string table, string name)
Parameters
Type | Name | Description |
---|---|---|
string | type | The type. |
string | table | The table name. |
string | name | The name. |
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 abstract 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 virtual object? Deserialize(JsonElement element)
Parameters
Type | Name | Description |
---|---|---|
JsonElement | element | The json element. |
Returns
Type | Description |
---|---|
object | The deserialized object. |
Serialize(object?)
Declaration
public abstract string? Serialize(object? obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The obejct. |
Returns
Type | Description |
---|---|
string | The serialized string. |