public FormRoot(string connectionString, string strNameTable) { this.form = new Form(); this.strNameTable = strNameTable; this.DAO = new SQLServerDAO(connectionString); this.btnAction = new Button(); this.btnCancel = new Button(); this.btnAction.Click += Action_Click; this.btnCancel.Click += Cancel_Click; this.primaryKey = DAO.GetPrimaryKey(strNameTable); }
public Memberships(string connectionString) { dao = new SQLServerDAO(connectionString); dao.CreateAccountTable(); }
public SectorController(AbstractDAO <Sector> sectorDAO) { this.sectorDAO = sectorDAO; }
private UserMetier(AbstractDAO <User> dao) : base(dao) { InsertGenerator += (Dictionary <string, object> sqlParams) => GenerateInsertUser(sqlParams); UpdateGenerator += (Dictionary <string, object> sqlParams) => GenerateUpdateUser(sqlParams); }
public UserTypeMetier(AbstractDAO <UserType> dao) : base(dao) { }
private LinkMetier(AbstractDAO <Link> daoInstance) : base(daoInstance) { InsertGenerator = (Dictionary <string, object> sqlParams) => GenerateInsertLink(sqlParams); }
public HouseController(AbstractDAO <House> houseDAO) { this.houseDAO = houseDAO; }