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
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
StoreType
The EF Core property CLR type used for persistence.
public Type StoreType { get; init; }