Exemplo n.º 1
0
        public void WritePatch(string filename, bool withSchemas = true)
        {
            var patch = ToPatch(withSchemas);

            patch.WriteUpdateFile(filename);

            var dropFile = SchemaPatch.ToDropFileName(filename);

            patch.WriteRollbackFile(dropFile);
        }
Exemplo n.º 2
0
        public void WritePatch(string filename)
        {
            var patch      = ToPatch();
            var fileSystem = new FileSystem();


            fileSystem.WriteStringToFile(filename, patch.UpdateDDL);

            var dropFile = SchemaPatch.ToDropFileName(filename);

            fileSystem.WriteStringToFile(dropFile, patch.RollbackDDL);
        }
Exemplo n.º 3
0
        public void WritePatch(string filename, bool withSchemas = true)
        {
            if (!Path.IsPathRooted(filename))
            {
                filename = AppContext.BaseDirectory.AppendPath(filename);
            }

            var patch = ToPatch(withSchemas);

            patch.WriteUpdateFile(filename);

            var dropFile = SchemaPatch.ToDropFileName(filename);

            patch.WriteRollbackFile(dropFile);
        }