using StudentProgressRecord.Forms; using StudentProgressRecord.IRepositories; using StudentProgressRecord.Repositories; using StudentProgressRecord.RepositoryImp; using Unity; using Unity.Lifetime; namespace StudentProgressRecord { internal static class Program { /// /// The main entry point for the application. /// [STAThread] static void Main() { ApplicationConfiguration.Initialize(); Application.Run(CreateContainer().Resolve()); } private static IUnityContainer CreateContainer() { var container = new UnityContainer(); container.RegisterType (new TransientLifetimeManager()); container.RegisterType (new TransientLifetimeManager()); container.RegisterType (new TransientLifetimeManager()); container.RegisterType (new TransientLifetimeManager()); container.RegisterType (new TransientLifetimeManager()); return container; } } }