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

Notifications You must be signed in to change notification settings

wcrowther/SeedPacket

Repository files navigation

SeedPacket

SeedPacket extends IEnumerable with a .seed() method for quickly populating lists with realistic data, similar to a LINQ extension.

Its powerful, customizable rules engine uses data types, interfaces, and property names to generate appropriate emails for email fields, phone numbers for phone fields, and so on. Default rules work out-of-the-box, but you can easily create or modify them, with examples provided, including data pulled from XML or JSON. Generated data can be repeatable or randomized per 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