A database based on .net
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
894 B

// Author: Gockner, Simon
// Created: 2020-02-12
// Copyright(c) 2020 SimonG. All Rights Reserved.
using GBase.Factories;
using GBase.Interfaces;
using LightweightIocContainer.Interfaces;
using LightweightIocContainer.Interfaces.Installers;
namespace GBase.Installers
{
/// <summary>
/// <see cref="IIocInstaller"/> for the GBase
/// </summary>
public class GBaseInstaller : IIocInstaller
{
/// <inheritdoc />
public void Install(IIocContainer container)
{
container.Register<IGBase, GBase>();
container.Register<IGBaseTable, GBaseTable>();
container.Register<IGBaseEntry, GBaseEntry>();
//factories
container.RegisterFactory<IGBaseFactory>();
container.RegisterFactory<IGBaseTableFactory>();
container.RegisterFactory<IGBaseEntryFactory>();
}
}
}