Skip to content

Configuration

Michael Altmann edited this page Sep 20, 2016 · 5 revisions

Create a CherrySeedConfiguration instance and initialize configuration via the constructor:

var config = new CherrySeedConfiguration(cfg =>
{
    // do some configuration here
});

// create the seeder instance
var cherrySeeder = config.CreateSeeder();

// seed the test data into the database
cherrySeeder.Seed();

Once created a CherrySeedConfiguration instance cannot be changed or modified.

There are two types of settings:

  • Global settings are valid for all entities.
  • Entity specific settings overwrites global settings for a specific entity. For more info see Entity Settings.

Clone this wiki locally