Exemple #1
0
        protected IDbConnection IDbOpenConnectionCompanyWise(string subDomainName)
        {
            Data obj = new Data();

            string connStr = obj.GetCompanyConnectionString(subDomainName).ToString();
            //string connStr = GetCompanyConnectionString(companyCode);
            IDbConnection connection = new SqlConnection(connStr);

            connection.Open();
            return(connection);
        }