Class DateTimeTableAttribute
Represents a date time table attribute.
Inheritance
DateTimeTableAttribute
Implements
Inherited Members
Namespace: BiExcellence.OpenBi.Api.Commands.TableAttributes
Assembly: BiExcellence.OpenBi.Api.TableAttribute.dll
Syntax
public class DateTimeTableAttribute : TableAttribute, ITableAttribute<DateTimeOffset>, ITableAttribute, ICustomAttributes
Constructors
DateTimeTableAttribute(string, string, string)
Initializes a new instance of the DateTimeTableAttribute class.
Declaration
public DateTimeTableAttribute(string id, string table, string name)
Parameters
Type | Name | Description |
---|---|---|
string | id | The id. |
string | table | The table name. |
string | name | The name. |
DateTimeTableAttribute(string, string)
Initializes a new instance of the DateTimeTableAttribute class with a new id.
Declaration
public DateTimeTableAttribute(string table, string name)
Parameters
Type | Name | Description |
---|---|---|
string | table | The table name. |
string | name | The name. |
Methods
Deserialize(string?)
Deserializes the object based on the Type.
Declaration
public override object? Deserialize(string? obj)
Parameters
Type | Name | Description |
---|---|---|
string | obj | The obejct. |
Returns
Type | Description |
---|---|
object | The deserialized object. |
Overrides
Deserialize(JsonElement)
Deserializes the json element based on the Type.
Declaration
public override object? Deserialize(JsonElement element)
Parameters
Type | Name | Description |
---|---|---|
JsonElement | element | The json element. |
Returns
Type | Description |
---|---|
object | The deserialized object. |
Overrides
Serialize(DateTimeOffset)
Serializes a date time offset to a string.
Declaration
public string? Serialize(DateTimeOffset obj)
Parameters
Type | Name | Description |
---|---|---|
DateTimeOffset | obj | The date time offset value. |
Returns
Type | Description |
---|---|
string | The serialized string. |