Model for display item.
- Namespace
- Songhay
.Models - Interfaces
- Base Types
-
- object
- Derived Types
graph BT
Type-->Base0["object"]
Type-.->Interface0["ISortable"]
click Interface0 "/SonghayCore/latest/Songhay.Abstractions/ISortable"
Type-.->Interface1["ITemporal"]
click Interface1 "/SonghayCore/latest/Songhay.Abstractions/ITemporal"
Type["DisplayItemModel"]
class Type type-node
Derived0["ColorDisplayItemModel"]-->Type
click Derived0 "/SonghayCore/latest/Songhay.Models/ColorDisplayItemModel"
Syntax
public class DisplayItemModel : ISortable, ITemporal
Remarks
This class was originally developed
to compensate for RIA Services not supporting composition
of Entity Framework entities
where an Entity is the property of another object.
Properties
Name | Property Type | Summary |
---|---|---|
Description | string |
Gets or sets the description.
|
DisplayText | string |
Gets or sets the display text.
|
EndDate | DateTime? |
End/expiration
DateTime of the item.
|
Id | int |
Gets or sets the identifier.
|
InceptDate | DateTime? |
Origin
DateTime of the item.
|
ItemName | string |
Gets or sets the item name.
|
ModificationDate | DateTime? |
Modification/editorial
DateTime of the item.
|
ResourceIndicator | Uri? |
Gets or sets the resource indicator.
|
SortOrdinal | byte |
Gets or sets the sort ordinal.
|
Tag | object |
Gets or sets the tag.
|
Methods
Name | Return Value | Summary |
---|---|---|
ToString |
string |
Represents this instance as a
string .
|
Extension Methods
Name | Value | Summary |
---|---|---|
HasTag |
bool |
Returns
true when the item has the Tag
based on the specified evaluator.
|
Is |
bool |
Determines whether the specified type
can be assigned to
System.Runtime.Serialization.ISerializable .
From NullableExtensions
|
SetDefaults |
void |
Sets conventional default values
for
ITemporal data.
From ITemporalExtensions
|
SetDefaults |
void |
Sets conventional default values
for
ITemporal data.
From ITemporalExtensions
|
To |
MenuDisplayItemModel |
Converts the
DisplayItemModel into a menu display item model.
|
ToObjectOrDbNull |
object |
Boxes the nullable in
object
or returns DBNull .
From NullableExtensions
|
To |
T |
Returns the non-null value of the specified, nullable reference type
or throws an
ArgumentNullException
when the value is null.
From NullableExtensions
|
WithTag |
DisplayItemModel |
Fluently sets
Tag .
|