Seed Data

If you want to seed data into the CMS on start up then just create a class that implements

public interface ISeedData
{
    void Initialise(ZauberDbContext dbContext);
}

The dbContext used in the startup is passed in allowing you to create, update or delete whatever you want. As this class is loaded through the extension manager, you can also inject any other services you may need into your class

Last updated