DmOrderedColumn
Namespace: MJCZone.DapperMatic.Models
Assembly: MJCZone.DapperMatic
Summary
Represents a column in an ordered list of columns.
public
Contents
Constructors (2) | Methods (6) | Properties (2)
Constructors
DmOrderedColumn
Initializes a new instance of the DmOrderedColumn class. Used for deserialization.
csharp
DmOrderedColumn()DmOrderedColumn
Initializes a new instance of the DmOrderedColumn class.
csharp
DmOrderedColumn(string columnName, DmColumnOrder order)Parameters
- columnName (string) - Name of the column.
- order (DmColumnOrder) - Order of the column.
Methods
| Method | Summary |
|---|---|
| ToString | Returns a string that represents the current object. |
| ToString | Returns a string that represents the current object. |
| Parse | Parses a string representation of an ordered column. |
| GetType | |
| Equals | |
| GetHashCode |
ToString
Returns a string that represents the current object.
csharp
string ToString()Returns
Type: string
A string that represents the current object.
ToString
Returns a string that represents the current object.
csharp
string ToString(bool includeOrder)Parameters
- includeOrder (bool) - includes the order in the string.
Returns
Type: string
A string that represents the current object.
Parse
Parses a string representation of an ordered column.
csharp
DmOrderedColumn Parse(string input)Parameters
- input (string) - The string representation of the ordered column (e.g., "ColumnName DESC").
Returns
Type: DmOrderedColumn
A instance.
GetType
csharp
GetType()Equals
csharp
Equals()GetHashCode
csharp
GetHashCode()Properties
ColumnName
Gets or sets the name of the column.
Type: string
Order
Gets or sets the order of the column.
Type: DmColumnOrder