EntityComposition

Syntax

public class EntityComposition

Inheritance

Constructors

EntityComposition

public EntityComposition(EntityType entity)

Parameters

Properties

CollectionNavigationProperties

public List<NavigationProperty> CollectionNavigationProperties { get; }
A containing all of the Entity properties that map to the Many side of a One to Many association.

Returns

List<NavigationProperty>

ComplexProperties

public List<EdmProperty> ComplexProperties { get; }
A containing all of the Entity properties that are not .NET simple types (int, string, etc).

Returns

List<EdmProperty>

EntityType

public EntityType EntityType { get; set; }
The Entity Framework that represents the EF-processed shape and structure of the Entity.

Returns

EntityType

HasState

public bool HasState { get; }
A boolean specifying whether or not this Entity has StateType and StateTypeId properties.

Returns

bool

HasStatus

public bool HasStatus { get; }
A boolean specifying whether or not this Entity has StatusType and StatusTypeId properties.

Returns

bool

IsActiveTrackable

public bool IsActiveTrackable { get; }
A boolean specifying whether or not this Entity has an IsActive property.

Returns

bool

IsCreatedAuditable

public bool IsCreatedAuditable { get; }
A boolean specifying whether or not this Entity has a DateCreated property.

Returns

bool

IsCreatorTrackable

public bool IsCreatorTrackable { get; }
A boolean specifying whether or not this Entity has a CreatedById property.

Returns

bool

IsDbEnum

public bool IsDbEnum { get; }
A boolean specifying whether or not this Entity has Id, DisplayName, and IsActive properties.

Returns

bool

IsDbStateEnum

public bool IsDbStateEnum { get; }
A boolean specifying whether or not is true and the Entity has InstructionText, PrimaryTargetDisplayText, PrimaryTargetSortOrder, SecondaryTargetDisplayText, SecondaryTargetSortOrder properties.

Returns

bool

IsDbStatusEnum

public bool IsDbStatusEnum { get; }
A boolean specifying whether or not is true and the EntityName ends in “StatusType”.

Returns

bool

IsHumanReadable

public bool IsHumanReadable { get; }
A boolean specifying whether or not this Entity has DisplayName property.

Returns

bool

IsIdentifiable

public bool IsIdentifiable { get; }
A boolean specifying whether or not this Entity has an Id property.

Returns

bool

IsSortable

public bool IsSortable { get; }
A boolean specifying whether or not this Entity has a SortOrder property.

Returns

bool

IsUpdatedAuditable

public bool IsUpdatedAuditable { get; }
A boolean specifying whether or not this Entity has an DateUpdated property.

Returns

bool

IsUpdaterTrackable

public bool IsUpdaterTrackable { get; }
A boolean specifying whether or not this Entity has a UpdatedById property.

Returns

bool

KeyProperties

public List<EdmProperty> KeyProperties { get; }
A containing all of the Entity properties that make up the Entity’s keys.

Returns

List<EdmProperty>
public List<NavigationProperty> NavigationProperties { get; }
A containing all of the Entity properties that map to the other end of a One to One association.

Returns

List<NavigationProperty>

OtherProperties

public List<EdmProperty> OtherProperties { get; }
A containing all of the Entity properties that are NOT tracked by EasyAF.

Returns

List<EdmProperty>

PropertiesWithDefaults

public List<EdmProperty> PropertiesWithDefaults { get; }
A containing all of the Entity properties that make up the Entity’s keys.

Returns

List<EdmProperty>

SimpleProperties

public List<EdmProperty> SimpleProperties { get; }
A containing all of the Entity properties that are .NET simple types (int, string, etc).

Returns

List<EdmProperty>