示例#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);
        }
示例#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);
        }
示例#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);
        }