SeedPacket adds a .seed() method onto IEnumerable for quickly seeding data. Similar to a LINQ extension, it populates lists with realistic data. Ex: var mylist = new List<Item>().Seed().
It is easy to use, with a customizable, and powerful rules engine that keys off the datatype or interface, and name of an item's properties so that the data is appropriate to the type. That is to say, "out-of-the-box" - email properties will be filled with valid emails, phone numbers filled with phone numbers, and names are names etc. If you need to modify the default generated data the rules are simple to create and modify, and come with a many examples, including a data generator that pulls from an xml or json file or string. The randomly generated data can be set to always be repeatable or to be random on each request.
Go to http://www.seedpacket.net/ for more details.
See the version list below for details.
Install-Package SeedPacket -Version 2.0.7
dotnet add package SeedPacket --version 2.0.7
<PackageReference Include="SeedPacket" Version="2.0.7" />
paket add SeedPacket --version 2.0.7
There are numerous improvements including :
*Xml or Json Support from either file or string using new MultiGenerator
*Code reorganization to make customization easier
*SimpleSeed (an alternate approach without the Rules engine)
Unfortunately, these changes will require code refactoring for in-place upgrades.
2.0.5 Release adds LoremText generator.
2.0.7 Changes the names of some Funcs which may need to be changed if they have been referenced from custom rules. Bug fixes.
This package is not used by any popular GitHub repositories.