Employee2

Inheritance hierarchy

Hierarchy type Target per entity
Is abstract False

Person (Hierarchy root)
   
Employee2

Relationships

The Employee2 entity is part of the following relationships

Related Entity Full description Inherited from
Paycheck Paycheck.Employee2 - Employee2.Paycheck (m:1)

Fields

The following fields are defined in the Employee2 entity

Name Type Inherited from Is PK Is FK Optional Read-only Max. length Precision Scale
FirstName string (System.String) Person 50 0 0
LastName string (System.String) Person 50 0 0
PersonId int (System.Int32) Person Yes Yes 0 0 0
EmployeeNumber int (System.Int32) 0 0 0

Unique Constraints

None.

None.

Mappings

InheritanceOne.dbo.Employee2 (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
EmployeeNumber EmployeeNumber int 0 10 0
PersonId PersonID int 0 10 0

Code generation information

Setting values

Employee2 (Entity)

Setting name Value
Entity base class name CommonEntityBase

EmployeeNumber (NormalField)

Setting name Value
Generate as nullable type True
Field property is public True
Field property has private setter False

PersonId (NormalField)

Setting name Value
Generate as nullable type True
Field property is public True
Field property has private setter False

Paycheck (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.