コード例 #1
0
        /// <inheritdoc/>
        protected override string GetConnectionString()
        {
            RavenDBConnectionStringBuilder builder = new RavenDBConnectionStringBuilder();

            builder.DatabaseName    = tbDatabase.Text;
            builder.Host            = tbHost.Text;
            builder.CertificatePath = tbCertificatePath.Text;
            builder.Password        = tbPassword.Text;
            return(builder.ToString());
        }
コード例 #2
0
        /// <inheritdoc/>
        protected override void SetConnectionString(string value)
        {
            FConnectionString = value;
            RavenDBConnectionStringBuilder builder = new RavenDBConnectionStringBuilder(value);

            tbDatabase.Text        = builder.DatabaseName;
            tbHost.Text            = builder.Host;
            tbCertificatePath.Text = builder.CertificatePath;
            tbPassword.Text        = builder.Password;
        }
コード例 #3
0
        /// <inheritdoc/>
        public override string GetConnectionId()
        {
            RavenDBConnectionStringBuilder builder = new RavenDBConnectionStringBuilder(ConnectionString);

            return("RavenDB: " + builder.ToString());
        }