public RootViewModel() { _dao = new DAO.DAO(); _dao.GetAllTests(); CurrentView = new TestListViewModel(this); }
private void FormPrincipal_Load(object sender, EventArgs e) { DAO.DAO dao = new DAO.DAO(); // Criara a pasta bd e o arquivo .sdf dao.CreateDB(); // Criara as tabelas no bd caso nao tiver nenhuma if (dao.CheckTB() == 0) { dao.CreateTB(); } }
public Controller(DAO.DAO dao) { Dao = dao; }
public DAOController(string connectionString) { this.ConnectionString = connectionString; this.objDAO = new DAO.DAO(); }
public DTO(DAO.DAO dao) { dao_ = dao; }