ErAttribute Class

An attribute of an entity: a row of its table, with its type, its name, its keys and its comment.

public sealed class ErAttribute

Constructors

NameDescription
ErAttribute(string, string)Initializes a new instance of the ErAttribute class.

ErAttribute(string, string)

ErAttribute.cs

Initializes a new instance of the ErAttribute class.

public ErAttribute(string type, string name)

Parameters

type string
The type, such as string or int. A type that ends with ? is optional.
name string
The name.

Properties

NameDescription
CommentGets or sets the comment, or null for none.
KeysGets or sets the keys the attribute is part of.
NameGets or sets the name.
TypeGets or sets the type, such as string or int. The generic types are written List~int~ and shown List<int>.

Gets or sets the comment, or null for none.

public string? Comment { get; set; }

Property value

string?

Gets or sets the keys the attribute is part of.

public ErAttributeKeys Keys { get; set; }

Property value

ErAttributeKeys

Gets or sets the name.

public string Name { get; set; }

Property value

string

Gets or sets the type, such as string or int. The generic types are written List~int~ and shown List<int>.

public string Type { get; set; }

Property value

string