Example #1
0
        ///// <summary>
        ///// Gets reference to script context. Cannot be <c>null</c>.
        ///// </summary>
        //readonly Context/*!*/_ctx;

        /// <summary>
        /// Creates a new connection resource.
        /// </summary>
        /// <param name="manager">Containing connection manager.</param>
        /// <param name="connectionString">Connection string.</param>
        public PhpSqlDbConnection(SqlConnectionManager manager, string /*!*/ connectionString)
            : base(connectionString, "mssql connection")
        {
            //if (ctx == null)
            //    throw new ArgumentNullException(nameof(ctx));

            //_ctx = ctx;
            _manager    = manager;
            _connection = new SqlConnection(connectionString);
            // TODO: Connection.InfoMessage += new SqlInfoMessageEventHandler(InfoMessage);
        }
Example #2
0
 static SqlConnectionManager GetManager(Context ctx) => SqlConnectionManager.GetInstance(ctx);