IStringIdentifiable

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

The interface extends IIdentifiable to hardcode id type to string.

Inherits: IIdentifiable

Description

The IIdentifiable interface extends IIdentifiable to 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