Пример #1
0
        /// <summary>
        /// Returns a connection from the connection pool.
        /// </summary>
        /// <param></param>
        /// <param name="connectionInfo"></param>
        /// <returns></returns>
        public static MapiConnection GetConnectionhandle(MonetDbConnectionInfo connectionInfo)
        {
            var connection = MapiLib.MapiConnect(connectionInfo.Host, connectionInfo.GetPort(), UserName, Password, Language, connectionInfo.Database);

            DieConnectionError(connection);

            return(connection);
        }
Пример #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="clientModel"></param>
        public MonetBulkCopyModel(MonetDbConnectionInfo clientModel)
            : this()
        {
            Host     = clientModel.Host;
            Database = clientModel.Database;

            SetPort(clientModel.GetPort());
        }