File

Inheritance hierarchy

Hierarchy type Target per entity hierarchy
Is abstract False

FolderFile (Hierarchy root)
   
File

Discriminator field: Discriminator

Entity Discriminator value
FolderFile 1
File 3
Archive 4
Folder 2

Relationships

The File entity is part of the following relationships

Related Entity Full description Inherited from
Folder File.ParentFolder - Folder.ContainedFiles (m:1)

Fields

The following fields are defined in the File entity

Name Type Inherited from Is PK Is FK Optional Read-only Max. length Precision Scale
Discriminator byte (System.Byte) FolderFile Yes 0 0 0
Id int (System.Int32) FolderFile Yes Yes 0 0 0
Name string (System.String) FolderFile 50 0 0
Filesize int (System.Int32) Yes 0 0 0
ParentId int (System.Int32) Yes Yes 0 0 0

Unique Constraints

None.

None.

Mappings

InheritanceOne.dbo.FolderFile (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
Filesize Filesize Yes int 0 10 0
ParentId ParentID Yes int 0 10 0
Unmapped fields in target
Target field Nullable Type Length Precision Scale
ID int 0 10 0
Name varchar 50 0 0
Discriminator tinyint 0 3 0
PackType Yes varchar 10 0 0

Code generation information

Setting values

File (Entity)

Setting name Value
Entity base class name CommonEntityBase

Filesize (NormalField)

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

Id (NormalField)

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

ParentId (NormalField)

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

ParentFolder (NavigatorSingleValue)

Setting name Value
Navigator property is public True

Attribute definitions per element

ParentFolder (NavigatorSingleValue)

  • Browsable($true)

Additional interface definitions per element

None.

Additional namespace definitions per element

None.