CompanyCar

Inheritance hierarchy

Hierarchy type Target per entity hierarchy
Is abstract True

CompanyCar (Hierarchy root)

Discriminator field: CarType

Entity Discriminator value
CompanyCar 1
SportsCar 3
BritishSportsCar 5
ItalianSportsCar 4
FamilyCar 2
GermanFamilyCar 6
JapaneseFamilyCar 7

Relationships

The CompanyCar entity is part of the following relationships

Related Entity Full description
BoardMember BoardMember.CompanyCar - CompanyCar.BoardMember (m:1)
BoardMemberCore BoardMemberCore.CompanyCar - CompanyCar.BoardMemberCore (m:1)

Fields

The following fields are defined in the CompanyCar entity

Name Type Is PK Is FK Optional Read-only Max. length Precision Scale
Brand string (System.String) 50 0 0
CarId int (System.Int32) Yes 0 0 0
CarType short (System.Int16) Yes 0 0 0
Price decimal (System.Decimal) 0 19 4

Unique Constraints

None.

None.

Mappings

InheritanceOne.dbo.CompanyCar (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
Brand Brand varchar 50 0 0
CarId CarID int 0 10 0
CarType CarType smallint 0 5 0
Price Price money 0 19 4
Unmapped fields in target
Target field Nullable Type Length Precision Scale
HasDrawHook Yes bit 0 0 0
IsCabrio Yes bit 0 0 0

Code generation information

Setting values

CompanyCar (Entity)

Setting name Value
Entity base class name CommonEntityBase

Brand (NormalField)

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

CarId (NormalField)

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

CarType (NormalField)

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

Price (NormalField)

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

BoardMember (NavigatorCollection)

Setting name Value
Navigator property is public True

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