예제 #1
0
        public void Close()
        {
            _dac.Close();

            var checksumWriter = new ModelChecksumWriter(_dacpacPath);
            checksumWriter.FixChecksum();
        }
예제 #2
0
        public void Close()
        {
            _dac.Close();

            var checksumWriter = new ModelChecksumWriter(_dacpacPath);

            checksumWriter.FixChecksum();
        }
        public void Can_Write_Correct_Checksum()
        {
            var dacpac = new DacHacXml(".\\Test.dacpac");
            var stream = dacpac.GetStream("Model.xml");

            var checksum = HashAlgorithm.Create("System.Security.Cryptography.SHA256CryptoServiceProvider").ComputeHash(stream);

            dacpac.Close();

            var writer = new ModelChecksumWriter(".\\Test.dacpac");
            writer.FixChecksum();

            //assert wtf??
        }