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
dbContextDbContextThe 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
modelIModelThe 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
dbContextDbContextThe DbContext whose model should be inspected.
Returns
ToMaybeMappingDebugString(IModel)
Produces a readable debug string showing how each Maybe<T> property resolved.
public static string ToMaybeMappingDebugString(this IModel model)
Parameters
modelIModelThe EF Core model.