public NuoDbDataSourceInformation(Microsoft.VisualStudio.Data.DataConnection dataConnection)
            : base(dataConnection)
        {
            base.AddProperty(AdoDotNetDataSourceInformation.CatalogSupported, false);
            base.AddProperty(AdoDotNetDataSourceInformation.CatalogSupportedInDml, false);
            base.AddProperty(AdoDotNetDataSourceInformation.DefaultCatalog, null);
            NuoDbDataConnectionProperties helper = new NuoDbDataConnectionProperties();

            helper.ConnectionStringBuilder.ConnectionString = dataConnection.DisplayConnectionString;
            object defaultSchema = null;

            helper.ConnectionStringBuilder.TryGetValue("Schema", out defaultSchema);
            base.AddProperty(AdoDotNetDataSourceInformation.DefaultSchema, defaultSchema);
            base.AddProperty(AdoDotNetDataSourceInformation.IdentifierOpenQuote, "\"");
            base.AddProperty(AdoDotNetDataSourceInformation.IdentifierCloseQuote, "\"");
            base.AddProperty(AdoDotNetDataSourceInformation.IdentifierPartsCaseSensitive, false);
            base.AddProperty(AdoDotNetDataSourceInformation.ParameterPrefix, "");
            base.AddProperty(AdoDotNetDataSourceInformation.ParameterPrefixInName, false);
            base.AddProperty(AdoDotNetDataSourceInformation.ProcedureSupported, false);
            base.AddProperty(AdoDotNetDataSourceInformation.QuotedIdentifierPartsCaseSensitive, true);
            base.AddProperty(AdoDotNetDataSourceInformation.QuotedIdentifierPartsStorageCase, 'M');
            base.AddProperty(AdoDotNetDataSourceInformation.SchemaSupported, true);
            base.AddProperty(AdoDotNetDataSourceInformation.SchemaSupportedInDml, true);
            base.AddProperty(AdoDotNetDataSourceInformation.ServerSeparator, ".");
            base.AddProperty(AdoDotNetDataSourceInformation.SupportsAnsi92Sql, true);
            base.AddProperty(AdoDotNetDataSourceInformation.SupportsQuotedIdentifierParts, false);
            base.AddProperty(AdoDotNetDataSourceInformation.SupportsCommandTimeout, false);
        }
Exemple #2
0
 public NuoDbObjectIdentifierConverter(Microsoft.VisualStudio.Data.DataConnection dataConnection)
     : base(dataConnection)
 {
 }