public OrdemServicoRepository(DataBase db) { if (db == null) throw new NotValidDatabaseInstance(); this.DataBase = db; }
public static DataBase PegarBancoDeDados() { DataBase db = new DataBase(); if (db.DatabaseExists() == false) { db.CreateDatabase(); } return db; }