Class Id
Helper class for IDs.
Inheritance
System.Object
Id
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Data
Assembly: Kephas.Core.dll
Syntax
public static class Id
Properties
| Improve this Doc View SourceIsEmpty
Gets or sets a function to determine whether a specified value is considered empty.
Declaration
public static Func<object, bool> IsEmpty { get; set; }
Property Value
Type | Description |
---|---|
System.Func<System.Object, System.Boolean> |
IsTemporary
Gets or sets a function to determine whether a specified value is considered temporary.
Declaration
public static Func<object, bool> IsTemporary { get; set; }
Property Value
Type | Description |
---|---|
System.Func<System.Object, System.Boolean> |
Remarks
A temporary value indicate that a proper id will be provided at a later time, for example when creating a new entity.
Methods
| Improve this Doc View SourceAddEmptyValue(Object)
Adds a value considered empty.
Declaration
public static void AddEmptyValue(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The empty value. |
RemoveEmptyValue(Object)
Removes a value considered empty.
Declaration
public static bool RemoveEmptyValue(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The empty value to be removed. |
Returns
Type | Description |
---|---|
System.Boolean | True if it succeeds, false if it fails. |