Table of Contents

Class MaybeModelExtensions

Namespace
Trellis.EntityFrameworkCore
Assembly
Trellis.EntityFrameworkCore.dll

Diagnostics helpers for inspecting resolved EF Core mappings for Maybe<T> properties.

public static class MaybeModelExtensions
Inheritance
MaybeModelExtensions
Inherited Members

Methods

GetMaybePropertyMappings(DbContext)

Returns the resolved Maybe<T> mappings discovered in the EF Core model.

public static IReadOnlyList<MaybePropertyMapping> GetMaybePropertyMappings(this DbContext dbContext)

Parameters

dbContext DbContext

The DbContext whose model should be inspected.

Returns

IReadOnlyList<MaybePropertyMapping>

A list describing each resolved Maybe<T> mapping.

GetMaybePropertyMappings(IModel)

Returns the resolved Maybe<T> mappings discovered in the EF Core model.

public static IReadOnlyList<MaybePropertyMapping> GetMaybePropertyMappings(this IModel model)

Parameters

model IModel

The EF Core model.

Returns

IReadOnlyList<MaybePropertyMapping>

A list describing each resolved Maybe<T> mapping.

ToMaybeMappingDebugString(DbContext)

Produces a readable debug string showing how each Maybe<T> property resolved.

public static string ToMaybeMappingDebugString(this DbContext dbContext)

Parameters

dbContext DbContext

The DbContext whose model should be inspected.

Returns

string

A debug string summarizing all resolved Maybe<T> mappings.

ToMaybeMappingDebugString(IModel)

Produces a readable debug string showing how each Maybe<T> property resolved.

public static string ToMaybeMappingDebugString(this IModel model)

Parameters

model IModel

The EF Core model.

Returns

string

A debug string summarizing all resolved Maybe<T> mappings.