Пример #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();
 }
Пример #3
0
 public SectorController(AbstractDAO <Sector> sectorDAO)
 {
     this.sectorDAO = sectorDAO;
 }
Пример #4
0
 private UserMetier(AbstractDAO <User> dao) : base(dao)
 {
     InsertGenerator += (Dictionary <string, object> sqlParams) => GenerateInsertUser(sqlParams);
     UpdateGenerator += (Dictionary <string, object> sqlParams) => GenerateUpdateUser(sqlParams);
 }
Пример #5
0
 public UserTypeMetier(AbstractDAO <UserType> dao) : base(dao)
 {
 }
Пример #6
0
 private LinkMetier(AbstractDAO <Link> daoInstance) : base(daoInstance)
 {
     InsertGenerator = (Dictionary <string, object> sqlParams) => GenerateInsertLink(sqlParams);
 }
Пример #7
0
 public HouseController(AbstractDAO <House> houseDAO)
 {
     this.houseDAO = houseDAO;
 }