Class MaybePropertyMapping
- Namespace
- Trellis.EntityFrameworkCore
- Assembly
- Trellis.EntityFrameworkCore.dll
Describes how a Maybe<T> property resolved to an EF Core mapped backing field.
public sealed record MaybePropertyMapping : IEquatable<MaybePropertyMapping>
- Inheritance
-
MaybePropertyMapping
- Implements
- Inherited Members
- Extension Methods
Constructors
MaybePropertyMapping(string, Type, string, string, Type, Type, bool, bool, string?, Type?)
Describes how a Maybe<T> property resolved to an EF Core mapped backing field.
public MaybePropertyMapping(string EntityTypeName, Type EntityClrType, string PropertyName, string MappedBackingFieldName, Type InnerType, Type StoreType, bool IsMapped, bool IsNullable, string? ColumnName, Type? ProviderClrType)
Parameters
EntityTypeNamestringThe EF Core entity type name.
EntityClrTypeTypeThe entity CLR type.
PropertyNamestringThe original Maybe<T> CLR property name.
MappedBackingFieldNamestringThe source-generated private backing field name used by the EF model.
InnerTypeTypeThe inner Maybe<T> value type.
StoreTypeTypeThe EF Core property CLR type used for persistence.
IsMappedboolWhether the mapped backing field is present in the EF model.
IsNullableboolWhether the mapped backing field is nullable in the EF model.
ColumnNamestringThe relational column name, if available.
ProviderClrTypeTypeThe provider CLR type after value conversion, if any.
Properties
ColumnName
The relational column name, if available.
public string? ColumnName { get; init; }
Property Value
Columns
Gets every table-column mapping, including ownership keys and recursively owned values. Nested values can target different tables. Sequence equality preserves record value semantics.
public EquatableArray<MaybeColumnMapping> Columns { get; init; }
Property Value
EntityClrType
The entity CLR type.
public Type EntityClrType { get; init; }
Property Value
EntityTypeName
The EF Core entity type name.
public string EntityTypeName { get; init; }
Property Value
InnerType
The inner Maybe<T> value type.
public Type InnerType { get; init; }
Property Value
IsMapped
Whether the mapped backing field is present in the EF model.
public bool IsMapped { get; init; }
Property Value
IsNullable
Whether the mapped backing field is nullable in the EF model.
public bool IsNullable { get; init; }
Property Value
MappedBackingFieldName
The source-generated private backing field name used by the EF model.
public string MappedBackingFieldName { get; init; }
Property Value
PropertyName
The original Maybe<T> CLR property name.
public string PropertyName { get; init; }
Property Value
ProviderClrType
The provider CLR type after value conversion, if any.
public Type? ProviderClrType { get; init; }
Property Value
Schema
Gets the root table's schema, or null for the provider's default.
public string? Schema { get; init; }
Property Value
StorageKind
Gets the storage shape resolved from the finalized model.
public MaybeStorageKind StorageKind { get; init; }
Property Value
StorageReason
Gets the recorded reason for Trellis's separate-table fallback, or null when no convention reason is known (including explicit table overrides).
public string? StorageReason { get; init; }
Property Value
StoreType
The EF Core property CLR type used for persistence.
public Type StoreType { get; init; }
Property Value
TableName
Gets the scalar or owned root's table name, or null when it has no table mapping.
public string? TableName { get; init; }