Class EfProperty
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
IsExplicitlyRequired
Gets or initializes a value indicating whether the property was explicitly marked as required.
public bool IsExplicitlyRequired { get; init; }
Property Value
IsForeignKey
Gets or initializes a value indicating whether the property is a foreign key.
public bool IsForeignKey { get; init; }
Property Value
IsPrimaryKey
Gets or initializes a value indicating whether the property is a primary key.
public bool IsPrimaryKey { get; init; }
Property Value
IsRequired
Gets or initializes a value indicating whether the property is required.
public bool IsRequired { get; init; }
Property Value
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
IsValueType
Gets or initializes a value indicating whether the property is a value type.
public bool IsValueType { get; init; }
Property Value
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
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; }