Skip to content

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().

wcrowther/SeedPacket

Repository files navigation

SeedPacket

SeedPacket adds a .seed() method onto IEnumerable for quickly seeding data. Similar to a LINQ extension, it populates lists with realistic data with a simple .Seed() to most IEnumerables.

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.

// Creates 10 rows (default)
var users = new List().Seed();

// Create 20 rows
var users = new List().Seed(20);

// Create rows starting with 100 to 200
var users = new List().Seed(100, 200);

For more information with extensive examples
please see the documentation at:

http://www.seedpacket.net

About

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().

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published