Beispiel #1
0
        public string StringConnecting()
        {
            ConfigJson res = (new ConfigJson()).jsonRead();

            this.server          = res.server;
            this.user            = res.user;
            this.password        = res.password;
            this.db              = res.db;
            this.organization_id = res.organization_id;
            string strConnect = @"data source=" + this.server + ";initial catalog=" + this.db + ";user id=" + this.user + ";password="******"; MultipleActiveResultSets=True;App=EntityFramework";

            return(strConnect);
        }
Beispiel #2
0
        // написать метод
        public int SubsidiaryCompaniesRegion()
        {
            ConfigJson res = (new ConfigJson()).jsonRead();

            return(res.organization_id);
        }