Exemple #1
0
        public SiebelDB(Program.Options options)
        {
            _options = options;

            System.Data.SqlClient.SqlConnectionStringBuilder builder = new System.Data.SqlClient.SqlConnectionStringBuilder();
            builder.DataSource     = _options.DbServer;
            builder.UserID         = _options.Username;
            builder.Password       = _options.Password;
            builder.InitialCatalog = _options.Database;

            if (_options.Verbose)
            {
                Console.WriteLine("Connecting to: '{0}'", builder.ConnectionString);
            }

            db = new DataContext(builder.ConnectionString);
        }
Exemple #2
0
        public SiebelDB(Program.Options options)
        {
            _options = options;

             System.Data.SqlClient.SqlConnectionStringBuilder builder = new System.Data.SqlClient.SqlConnectionStringBuilder();
             builder.DataSource = _options.DbServer;
             builder.UserID = _options.Username;
             builder.Password = _options.Password;
             builder.InitialCatalog = _options.Database;

             if (_options.Verbose)
             {
            Console.WriteLine("Connecting to: '{0}'", builder.ConnectionString);
             }

             db = new DataContext(builder.ConnectionString);
        }