Пример #1
0
        public override IConnectionStringDictionary GetConnectionStringBuilder(string connectionString)
        {
            //TBD: should wrap the IConnectionStringDictionary
            IConnectionStringDictionary conectionStringBuilder = base.GetConnectionStringBuilder(connectionString);

            OleDbSqlHelper.InitConnectionStringBuilder(conectionStringBuilder);
            return(conectionStringBuilder);
        }
Пример #2
0
        public override IConnectionStringDictionary GetConnectionStringBuilder(string connectionString)
        {
            //TBD: should wrap the IConnectionStringDictionary
            IConnectionStringDictionary conectionStringBuilder = base.GetConnectionStringBuilder(connectionString);

            OleDbSqlHelper.InitConnectionStringBuilder(conectionStringBuilder);

            string port = (string)conectionStringBuilder [Port];

            if (port == null || port.Length == 0)
            {
                port = GetMSSqlPort(OleDbSqlHelper.GetInstanceName(conectionStringBuilder, DefaultInstanceName), OleDbSqlHelper.GetDataSource(conectionStringBuilder), OleDbSqlHelper.GetTimeout(conectionStringBuilder, DefaultTimeout));
                conectionStringBuilder.Add(Port, port);
            }

            return(conectionStringBuilder);
        }