Skip to content

v2.0.0

Choose a tag to compare

@danellalc danellalc released this 08 Aug 06:12
· 10 commits to main since this release

Breaking

Generated data changes for models with a required DateTime, DateOnly, TimeOnly, TimeSpan or byte[] property that no name-specific rule recognized. Previously such a property was silently left at its CLR default, or reached the database as a raw, unnamed provider exception if the column was NOT NULL. Five new generic inference rules now give it a real value. Same seed, same shape of model: different generated value than v1.0.0 produced.

Added

  • AutoSeedAsync and AutoSeedFastAsync accept an optional configure callback (Action<SeedConfigurationBuilder>):
    • Entity<T>().Exclude(): reads an entity type's already-existing rows from the database instead of generating new ones, and uses them as valid foreign key targets for anything that requires one.
    • Entity<T>().HasRowCount(n): pins an entity type's row count regardless of scale.
    • Entity<T>().Property(x => x.Y).GenerateWith((random, generatedValues) => ...): replaces every built-in rule for one property with a supplied delegate.
  • UnsupportedPropertyException, UnsupportedSeedConfigurationException, InvalidSeedConfigurationException.

Fixed

  • demo.gif in the README is now packed into both published packages, and shows a real, repeated, deterministic measurement instead of a placeholder.

Full changelog: https://github.com/danellalc/EFCore.AutoSeed/blob/main/CHANGELOG.md

NuGet: https://www.nuget.org/packages/EFCore.AutoSeed/2.0.0