IStringIdentifiable

Interface for data objects that can be uniquely identifed by a string id.

Inherits: IIdentifiable

Description

The IStringIdentifiable interface extends the IIdentifiable interface hardcode id type to string.

Important points

  • It is common to use a string GUID as the id, generated by IdGenerator.

Examples

public class MyData: IIdentifiable<String> 
{
    string id {get; set;}
    string field1;
    int field2;
    ...
}

See also