Exemple #1
0
        public void StatisticsTest()
        {
            FbStatistical statisticalSvc = new FbStatistical();

            statisticalSvc.ConnectionString = BuildServicesConnectionString();
            statisticalSvc.Options          = FbStatisticalFlags.SystemTablesRelations;

            statisticalSvc.ServiceOutput += ServiceOutput;

            statisticalSvc.Execute();
        }
Exemple #2
0
        public void StatisticsTest()
        {
            var statisticalSvc = new FbStatistical();

            statisticalSvc.ConnectionString = BuildServicesConnectionString(FbServerType, Compression, true);
            statisticalSvc.Options          = FbStatisticalFlags.SystemTablesRelations;

            statisticalSvc.ServiceOutput += ServiceOutput;

            statisticalSvc.Execute();
        }
Exemple #3
0
        public void StatisticsWithEncryptedTest()
        {
            var csb = BuildServicesConnectionStringBuilder(FbServerType, Compression, true);

            csb.Database = "enc.fdb";
            void Test()
            {
                var statisticalSvc = new FbStatistical(csb.ToString());

                statisticalSvc.ServiceOutput += ServiceOutput;
                statisticalSvc.Execute();
            }

            Assert.Throws <FbException>(Test);
            csb.CryptKey = Encoding.ASCII.GetBytes("1234567890123456");
            Assert.DoesNotThrow(Test);
        }