Class Group
Represents a group within an organization for organizing users and events.
Inherited Members
Namespace: OEMS.Core.Domain.Klassen
Assembly: OEMS.Core.dll
Syntax
[Table("Groups")]
public class Group
Properties
Color
Gets or sets the color theme for the group as a hex value.
Declaration
[Required]
[StringLength(7)]
public string Color { get; set; }
Property Value
Type | Description |
---|---|
string | A hex color code (e.g., "#FFFFFF") used for visual identification of the group. |
Description
Gets or sets an optional description for the group.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
string | A text description explaining the group's purpose or membership criteria. |
Events
Gets or sets the collection of events associated with this group.
Declaration
public virtual ICollection<Event> Events { get; set; }
Property Value
Type | Description |
---|---|
ICollection<Event> | The events that are specifically created for or assigned to this group. |
GroupUsers
Gets or sets the collection of user-group associations.
Declaration
public virtual ICollection<GroupUser> GroupUsers { get; set; }
Property Value
Type | Description |
---|---|
ICollection<GroupUser> | The users that are members of this group. |
Id
Gets or sets the unique identifier for the group.
Declaration
[Key]
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
Guid | A GUID that uniquely identifies the group. |
Name
Gets or sets the name of the group.
Declaration
[Required]
[StringLength(100)]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string | The group name, limited to 100 characters. |
OrgId
Gets or sets the identifier of the organization that owns this group.
Declaration
[Required]
public Guid OrgId { get; set; }
Property Value
Type | Description |
---|---|
Guid | The GUID of the parent organization. |
Organization
Gets or sets the navigation property to the parent organization.
Declaration
[ForeignKey("OrgId")]
public virtual Organization Organization { get; set; }
Property Value
Type | Description |
---|---|
Organization | The organization entity that owns this group. |