Role

Inheritance hierarchy

Hierarchy type Target per entity hierarchy
Is abstract True

Role (Hierarchy root)

Discriminator field: RoleName

Entity Discriminator value
Role Generic
EmployeeRole Employee
ManagerRole Manager

Relationships

The Role entity is part of the following relationships

Related Entity Full description
User Role.UserCollectionViaUserRole - User.RoleCollectionViaUserRole (m:n) (via UserRole)
UserRole UserRole.Role - Role.UserRole (m:1)

Fields

The following fields are defined in the Role entity

Name Type Is PK Is FK Optional Read-only Max. length Precision Scale
RoleId int (System.Int32) Yes Yes 0 0 0
RoleName string (System.String) Yes 50 0 0

Unique Constraints

None.

None.

Mappings

InheritanceOne.dbo.Role (SQL Server (SqlClient))

Aspect Value
Type of target Table
Actions allowed Create / Retrieve / Update / Delete
Entity Field Target field Nullable Type Length Precision Scale Sequence Type converter
RoleId RoleID int 0 10 0 SCOPE_IDENTITY()
RoleName RoleName varchar 50 0 0

Code generation information

Setting values

Role (Entity)

Setting name Value
Entity base class name CommonEntityBase

RoleId (NormalField)

Setting name Value
Generate as nullable type True
Field property is public True

RoleName (NormalField)

Setting name Value
Generate as nullable type True
Field property is public True

UserCollectionViaUserRole (NavigatorCollection)

Setting name Value
Navigator property is public True

UserRole (NavigatorCollection)

Setting name Value
Navigator property is public True

Attribute definitions per element

None.

Additional interface definitions per element

None.

Additional namespace definitions per element

None.