You would have to assign such an identifier yourself, manually - either inside the instance, or externally.
For records related to a database, the primary key may be useful (but you can still get duplicates). Alternatively, either use a Guid
, or keep your own counter, allocating using Interlocked.Increment
(and make it large enough that it isn't likely to overflow).