20 lines
512 B
C#
20 lines
512 B
C#
using GerstITS.Data.EntityFramework;
|
|
using GerstITS.Examples.Data.Migrations;
|
|
using GerstITS.IoC;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace GerstITS.Examples.Data;
|
|
|
|
public sealed class Module : IIoCModule<IServiceCollection>
|
|
{
|
|
#region IIoCModule
|
|
|
|
public void RegisterComponents(IServiceCollection container)
|
|
{
|
|
container.AddMigration<CustomerDbContext, CustomerDatabaseConfigurator>();
|
|
container.AddEntityFrameworkSession<CustomerDbContext>();
|
|
}
|
|
|
|
#endregion
|
|
}
|