Table of Contents

Class EfProperty

Namespace
ProjGraph.Core.Models
Assembly
ProjGraph.Core.dll

Represents a property of an entity in the Entity Framework model.

public class EfProperty
Inheritance
EfProperty
Inherited Members

Properties

DefaultValue

Gets or initializes the default value of the property, if any.

public string? DefaultValue { get; init; }

Property Value

string

IsExplicitlyRequired

Gets or initializes a value indicating whether the property was explicitly marked as required.

public bool IsExplicitlyRequired { get; init; }

Property Value

bool

IsForeignKey

Gets or initializes a value indicating whether the property is a foreign key.

public bool IsForeignKey { get; init; }

Property Value

bool

IsPrimaryKey

Gets or initializes a value indicating whether the property is a primary key.

public bool IsPrimaryKey { get; init; }

Property Value

bool

IsRequired

Gets or initializes a value indicating whether the property is required.

public bool IsRequired { get; init; }

Property Value

bool

IsTypeInferred

Gets or initializes a value indicating whether Type was guessed from the property's name rather than read from a CLR declaration or an explicit column type. Only a guessed type may be corrected by later evidence, such as a maximum length that no value type could carry.

public bool IsTypeInferred { get; init; }

Property Value

bool

IsValueType

Gets or initializes a value indicating whether the property is a value type.

public bool IsValueType { get; init; }

Property Value

bool

MaxLength

Gets or initializes the maximum length of the property value, if applicable.

public int? MaxLength { get; init; }

Property Value

int?

Name

Gets or initializes the name of the property.

public string Name { get; init; }

Property Value

string

Precision

Gets or initializes the precision of the property value, if applicable.

public int? Precision { get; init; }

Property Value

int?

Scale

Gets or initializes the scale of the property value, if applicable.

public int? Scale { get; init; }

Property Value

int?

Type

Gets or initializes the data type of the property.

public string Type { get; init; }

Property Value

string