示例#1
0
        /// <inheritdoc />
        public async Task <IDbConnection> GetConnectionAsync()
        {
            var connection = new EncryptedDbConnection(_connectionString, _securityContextAccessor.SecurityContext());
            await connection.OpenAsync();

            return(connection);
        }
示例#2
0
        /// <inheritdoc />
        public IDbConnection GetConnection()
        {
            var connection = new EncryptedDbConnection(_connectionString, _securityContextAccessor.SecurityContext());

            connection.Open();

            return(connection);
        }