[ROOT] / doc / toc / ARCCore / Class / IKString
EnrichKey , FromCache , FromString , op_Equality
Index key for any general id, like primary-key or sequence-number or similar.
(in RDBMS-terms a primary key)
Note that if the actual id is an integer, then IKLong should be used instead of IKString, because the former is more memory efficient
The actual id is not expected to be unique throughout the database, but rather unique within a context, for example the value '42' could be unique within the context of 'Customer'.
Note how constructor allows an empty string, but TryParse does not.
This class is immutable.
Note that although this class does not specify any maximum length of the string representation of the key, keys should be kept reasonable short in order to be practical in URL's and as file and folder names when storing on disk.
See IKCoded which specifies a maximum of 250 characters in an encoded string representation of a key.
EnrichKey | 'Implementing' ITypeDescriber. |
FromCache | Reduces number of objects generated by caching those known to be within a limited range |
FromString | Note how uses instance cache if already exists there |
op_Equality | It is quite natural in the code to write code like "if (a.CustomerId == b.CustomerId)", therefore the need to implement == and != operators here. |
Generated 2024-11-14 04:18:13.739 UTC