static void Main(string[] args) { //Library library = new Library(); //AuthorRepository authorRepository = new AuthorRepository(library); //authorRepository.CreateOrUpdate(new Author //{ // Signature = "AA", // Person = new Person // { // Name = "Nikita", // Surname = "Klymchuk" // } //}); MainViewConsole mainView = new MainViewConsole(new DatabaseLab2.Controllers.MainViewController(new Library())); mainView.Run(); }
static void Main(string[] args) { MainViewConsole mainView = new MainViewConsole(new Controllers.MainViewController("Host=localhost;Port=5432;Database=anime_girls;Username=postgres;Password=asd")); mainView.Run(); }
static void Main(string[] args) { MainViewConsole mainView = new MainViewConsole(new Controllers.MainViewController(Configuration.Configuration.GetConnectionString())); mainView.Run(); }