public OrdemServicoRepository(DataBase db)
        {
            if (db == null)
                throw new NotValidDatabaseInstance();

            this.DataBase = db;
        }
Example #2
0
        public static DataBase PegarBancoDeDados()
        {
            DataBase db = new DataBase();

            if (db.DatabaseExists() == false)
            {
                db.CreateDatabase();
            }

            return db;
        }