Table of Contents

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

EntityTypeName string

The EF Core entity type name.

EntityClrType Type

The entity CLR type.

PropertyName string

The original Maybe<T> CLR property name.

MappedBackingFieldName string

The source-generated private backing field name used by the EF model.

InnerType Type

The inner Maybe<T> value type.

StoreType Type

The EF Core property CLR type used for persistence.

IsMapped bool

Whether the mapped backing field is present in the EF model.

IsNullable bool

Whether the mapped backing field is nullable in the EF model.

ColumnName string

The relational column name, if available.

ProviderClrType Type

The provider CLR type after value conversion, if any.

Properties

ColumnName

The relational column name, if available.

public string? ColumnName { get; init; }

Property Value

string

EntityClrType

The entity CLR type.

public Type EntityClrType { get; init; }

Property Value

Type

EntityTypeName

The EF Core entity type name.

public string EntityTypeName { get; init; }

Property Value

string

InnerType

The inner Maybe<T> value type.

public Type InnerType { get; init; }

Property Value

Type

IsMapped

Whether the mapped backing field is present in the EF model.

public bool IsMapped { get; init; }

Property Value

bool

IsNullable

Whether the mapped backing field is nullable in the EF model.

public bool IsNullable { get; init; }

Property Value

bool

MappedBackingFieldName

The source-generated private backing field name used by the EF model.

public string MappedBackingFieldName { get; init; }

Property Value

string

PropertyName

The original Maybe<T> CLR property name.

public string PropertyName { get; init; }

Property Value

string

ProviderClrType

The provider CLR type after value conversion, if any.

public Type? ProviderClrType { get; init; }

Property Value

Type

StoreType

The EF Core property CLR type used for persistence.

public Type StoreType { get; init; }

Property Value

Type