Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
Provide option to save diagram as uncompressed XML
Browse files Browse the repository at this point in the history
  • Loading branch information
msawczyn committed Aug 3, 2020
1 parent 12f425c commit 4de871a
Show file tree
Hide file tree
Showing 16 changed files with 310 additions and 238 deletions.
2 changes: 2 additions & 0 deletions src/Dsl/CustomCode/Partials/ModelRoot.cs
Expand Up @@ -27,6 +27,8 @@ public partial class ModelRoot: IHasStore

public static Func<Diagram> GetCurrentDiagram;

public static Func<bool> WriteDiagramAsBinary = () => false;

static ModelRoot()
{
try
Expand Down
63 changes: 0 additions & 63 deletions src/Dsl/CustomCode/Utilities/SafeTransaction.cs

This file was deleted.

1 change: 0 additions & 1 deletion src/Dsl/Dsl.csproj
Expand Up @@ -187,7 +187,6 @@
<Compile Include="CustomCode\Utilities\Import\XMLDocumentation.cs" />
<Compile Include="CustomCode\Domain Types\OutputLocations.cs" />
<Compile Include="CustomCode\Utilities\PropertyDefaults.cs" />
<Compile Include="CustomCode\Utilities\SafeTransaction.cs" />
<Compile Include="CustomCode\Utilities\UIProxies\MessageDisplay.cs" />
<Compile Include="CustomCode\Utilities\UIProxies\ModelDisplay.cs" />
<Compile Include="CustomCode\Utilities\ModelMigration.cs" />
Expand Down
2 changes: 1 addition & 1 deletion src/Dsl/DslDefinition.dsl
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Dsl xmlns:dm0="http://schemas.microsoft.com/VisualStudio/2008/DslTools/Core" dslVersion="1.0.0.0" Id="9987f227-3d05-49b7-b151-857879f5dfb8" Description="Entity Framework visual editor for EF6, EFCore and beyond." Name="EFModel" DisplayName="Entity Framework Visual Editor" Namespace="Sawczyn.EFDesigner.EFModel" MajorVersion="2" Build="4" Revision="1" ProductName="EFDesigner" CompanyName="Michael Sawczyn" PackageGuid="56bbe1ba-aaee-4883-848f-e3c8656f8db2" PackageNamespace="Sawczyn.EFDesigner.EFModel" xmlns="http://schemas.microsoft.com/VisualStudio/2005/DslTools/DslDefinitionModel">
<Dsl xmlns:dm0="http://schemas.microsoft.com/VisualStudio/2008/DslTools/Core" dslVersion="1.0.0.0" Id="9987f227-3d05-49b7-b151-857879f5dfb8" Description="Entity Framework visual editor for EF6, EFCore and beyond." Name="EFModel" DisplayName="Entity Framework Visual Editor" Namespace="Sawczyn.EFDesigner.EFModel" MajorVersion="2" Build="4" Revision="2" ProductName="EFDesigner" CompanyName="Michael Sawczyn" PackageGuid="56bbe1ba-aaee-4883-848f-e3c8656f8db2" PackageNamespace="Sawczyn.EFDesigner.EFModel" xmlns="http://schemas.microsoft.com/VisualStudio/2005/DslTools/DslDefinitionModel">
<Classes>
<DomainClass Id="95532cb8-3452-4b09-a654-aeb2e2d0b3ad" Description="" Name="ModelRoot" DisplayName="Entity Model" Namespace="Sawczyn.EFDesigner.EFModel">
<CustomTypeDescriptor>
Expand Down
4 changes: 2 additions & 2 deletions src/Dsl/GeneratedCode/SerializationHelper.cs
Expand Up @@ -1168,7 +1168,7 @@ public virtual void WriteRootElement(DslModeling::SerializationContext serializa
// Only model has schema, diagram has no schema.
rootElementSettings.SchemaTargetNamespace = "http://schemas.microsoft.com/dsltools/EFModel";
}
rootElementSettings.Version = new global::System.Version("2.0.4.1");
rootElementSettings.Version = new global::System.Version("2.0.4.2");

// Carry out the normal serialization.
rootSerializer.Write(serializationContext, rootElement, writer, rootElementSettings);
Expand All @@ -1190,7 +1190,7 @@ protected virtual void CheckVersion(DslModeling::SerializationContext serializat
throw new global::System.ArgumentNullException("reader");
#endregion

global::System.Version expectedVersion = new global::System.Version("2.0.4.1");
global::System.Version expectedVersion = new global::System.Version("2.0.4.2");
string dslVersionStr = reader.GetAttribute("dslVersion");
if (dslVersionStr != null)
{
Expand Down

0 comments on commit 4de871a

Please sign in to comment.