ErEntity Class
An entity of an entity relationship diagram: a box with its name and the table of its attributes.
public sealed class ErEntity : ErElement- Inheritance
ErElementErEntity
Constructors
| Name | Description |
|---|---|
| ErEntity(string, DiagramText?) | Initializes a new instance of the ErEntity class. |
ErEntity(string, DiagramText?)
ErEntity.csInitializes a new instance of the ErEntity class.
public ErEntity(string id, DiagramText? label = null)Parameters
idstring- The name of the entity, which is shown when there is no label.
labelDiagramText?- The name shown instead of the identifier (Mermaid alias), or
null.
Properties
| Name | Description |
|---|---|
| Attributes | Gets the attributes, drawn in order. |
Attributes
ErEntity.csMethods
| Name | Description |
|---|---|
| AddAttribute(string, string, ErAttributeKeys, string?) | Adds an attribute. |
AddAttribute(string, string, ErAttributeKeys, string?)
ErEntity.csAdds an attribute.
public ErAttribute AddAttribute(string type, string name, ErAttributeKeys keys = ErAttributeKeys.None, string? comment = null)Parameters
typestring- The type, such as
stringorint. namestring- The name.
keysErAttributeKeys- The keys the attribute is part of.
commentstring?- The comment, or
nullfor none.
Returns
ErAttribute The attribute.