Skip to content

DataSeeding

DataSeeding module aims to provide all required logic and out of the box features for seeding information that is necessary to allow services' proper startup.

Usage

Allowing the DataSeeding module into your app's composition follows the same steps as any suite module. First add the reference on the required project:

XML
<ProjectReference Include="$(ModulesPath)ITsynch.Suite.DataSeedingModule\ITsynch.Suite.DataSeedingModule.csproj" />

And then depend on the module from your ApplicationModule's SetupModule override:

C#
1
2
3
4
5
6
7
8
9
public class MyServiceApplicationModule : SuiteAspNetApplicationModule
{
    public override void SetupModule(IModuleBuilder builder)
    {
        base.SetupModule(builder);
        builder.DependsOn<DataSeedingModule>();

    }
}

This is enough to enable all module's capabilities, which can ultimately be configured using the DataSeedingModuleOptions.