Ferrous API Reference

All Types / Ferrous.EntityFrameworkCore

class NonZeroConverter<T>

public sealed class NonZeroConverter<T> : ValueConverter<NonZero<T>, T> where T : struct, INumberBase<T>, IComparable<T>

EF Core ValueConverter<TModel, TProvider> that persists NonZero<T> as its underlying numeric column and re-validates on materialization.

Type Parameters
T
The underlying numeric value type.

Constructors