Esempio n. 1
0
        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();
 }
Esempio n. 3
0
 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);
 }
Esempio n. 5
0
 public UserTypeMetier(AbstractDAO <UserType> dao) : base(dao)
 {
 }
 private LinkMetier(AbstractDAO <Link> daoInstance) : base(daoInstance)
 {
     InsertGenerator = (Dictionary <string, object> sqlParams) => GenerateInsertLink(sqlParams);
 }
Esempio n. 7
0
 public HouseController(AbstractDAO <House> houseDAO)
 {
     this.houseDAO = houseDAO;
 }