Skip to content

Commit

Permalink
Revision bump
Browse files Browse the repository at this point in the history
  • Loading branch information
sjh37 committed Oct 24, 2022
1 parent 514feb2 commit 0b1abce
Show file tree
Hide file tree
Showing 16 changed files with 18 additions and 19 deletions.
3 changes: 1 addition & 2 deletions BuildTT/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ public class Program
{
static void Main()
{
//const string root = "..\\..\\..\\";
const string generatorRoot = "..\\..\\..\\Generator";
const string ttRoot = "..\\..\\..\\EntityFramework.Reverse.POCO.Generator";
const string templatesRoot = "..\\..\\..\\_File based templates";
Expand All @@ -16,7 +15,7 @@ static void Main()

TemplateFiles.Create(templatesRoot);
BuildTT.Create(generatorRoot, ttRoot, version);
//var vs = new VersionSetter(root, version);
//var vs = new VersionSetter("..\\..\\..\\", version);
//vs.SetVersions();

Console.WriteLine("Version: " + version);
Expand Down
2 changes: 1 addition & 1 deletion BuildTT/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.6.1
3.7.0
Binary file not shown.
Binary file not shown.
Binary file modified EntityFramework Reverse POCO Generator/ItemTemplates/efrpoco.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.6.1.0")]
[assembly: AssemblyFileVersion("3.6.1.0")]
[assembly: AssemblyVersion("3.7.0.0")]
[assembly: AssemblyFileVersion("3.7.0.0")]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="EntityFramework_Reverse_POCO_Generator..d542a934-8bd6-4136-b490-5f0049d62033" Version="3.6.1" Language="en-US" Publisher="Simon Hughes" />
<Identity Id="EntityFramework_Reverse_POCO_Generator..d542a934-8bd6-4136-b490-5f0049d62033" Version="3.7.0" Language="en-US" Publisher="Simon Hughes" />
<DisplayName>EntityFramework Reverse POCO Generator</DisplayName>
<Description xml:space="preserve">Reverse engineers an existing database and generates EntityFramework Code First POCO classes, Configuration mappings and DbContext.</Description>
<MoreInfo>https://github.com/sjh37/EntityFramework-Reverse-POCO-Code-First-Generator</MoreInfo>
Expand Down
2 changes: 1 addition & 1 deletion EntityFramework.Reverse.POCO.Generator/Database.tt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<#@ include file="EF.Reverse.POCO.v3.ttinclude" #>
<#
// v3.6.1
// v3.7.0
// Please make changes to the settings below.
// All you have to do is save this file, and the output file(s) are generated. Compiling does not regenerate the file(s).
// A course for the older v2 generator is available on Pluralsight at https://www.pluralsight.com/courses/code-first-entity-framework-legacy-databases
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<#
// Copyright (C) Simon Hughes 2012
// v3.6.1
// v3.7.0
// If you want to submit a pull request, please modify the Generator C# project as this file
// is automatically constructed from the C# Generator project during the build process.
#>
Expand Down Expand Up @@ -42,7 +42,7 @@
public static DatabaseType DatabaseType = DatabaseType.SqlServer; // SqlServer, SqlCe, PostgreSQL. Coming next: MySql, Oracle
public static TemplateType TemplateType = TemplateType.EfCore6; // EfCore6, EfCore5, EfCore3, EfCore2, Ef6, FileBasedCore2, FileBasedCore3. FileBased specify folder using Settings.TemplateFolder
public static GeneratorType GeneratorType = GeneratorType.EfCore; // EfCore, Ef6, Custom. Custom edit GeneratorCustom class to provide your own implementation
public static ForeignKeyNamingStrategy ForeignKeyNamingStrategy = ForeignKeyNamingStrategy.Legacy; // Please use Legacy for now (same as versions <= v3.6.1), Latest (not yet ready)
public static ForeignKeyNamingStrategy ForeignKeyNamingStrategy = ForeignKeyNamingStrategy.Legacy; // Please use Legacy for now (same as versions <= v3.7.0), Latest (not yet ready)
public static bool UseMappingTables = false; // Can only be set to true for EF6. If true, mapping will be used and no mapping tables will be generated. If false, all tables will be generated.
public static FileManagerType FileManagerType = FileManagerType.EfCore; // .NET Core project = EfCore; .NET 4.x project = VisualStudio; No output (testing only) = Null
public static string ConnectionString = ""; // This is used by the generator to reverse engineer your database
Expand Down Expand Up @@ -1516,7 +1516,7 @@
{
public static string Version()
{
return "v3.6.1";
return "v3.7.0";
}
}

Expand Down Expand Up @@ -3071,7 +3071,7 @@
}
public enum ForeignKeyNamingStrategy
{
Legacy, // Same as versions <= v3.6.1
Legacy, // Same as versions <= v3.7.0
Latest
}

Expand Down Expand Up @@ -3159,7 +3159,7 @@
}
}

// v0.0.0 <= v3.6.1
// v0.0.0 <= v3.7.0
public class LegacyForeignKeyNamingStrategy : BaseForeignKeyNamingStrategy, IForeignKeyNamingStrategy
{
public List<string> ReverseNavigationUniquePropName;
Expand Down
2 changes: 1 addition & 1 deletion Generator/EfrpgVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ public static class EfrpgVersion
{
public static string Version()
{
return "v3.6.1";
return "v3.7.0";
}
}
}
2 changes: 1 addition & 1 deletion Generator/ForeignKeyNamingStrategy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
public enum ForeignKeyNamingStrategy
{
Legacy, // Same as versions <= v3.6.1
Legacy, // Same as versions <= v3.7.0
Latest
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Efrpg.ForeignKeyStrategies
{
// v0.0.0 <= v3.6.1
// v0.0.0 <= v3.7.0
public class LegacyForeignKeyNamingStrategy : BaseForeignKeyNamingStrategy, IForeignKeyNamingStrategy
{
public List<string> ReverseNavigationUniquePropName;
Expand Down
4 changes: 2 additions & 2 deletions Generator/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.6.1.0")]
[assembly: AssemblyFileVersion("3.6.1.0")]
[assembly: AssemblyVersion("3.7.0.0")]
[assembly: AssemblyFileVersion("3.7.0.0")]
2 changes: 1 addition & 1 deletion Generator/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static class Settings
public static DatabaseType DatabaseType = DatabaseType.SqlServer; // SqlServer, SqlCe, PostgreSQL. Coming next: MySql, Oracle
public static TemplateType TemplateType = TemplateType.EfCore6; // EfCore6, EfCore5, EfCore3, EfCore2, Ef6, FileBasedCore2, FileBasedCore3. FileBased specify folder using Settings.TemplateFolder
public static GeneratorType GeneratorType = GeneratorType.EfCore; // EfCore, Ef6, Custom. Custom edit GeneratorCustom class to provide your own implementation
public static ForeignKeyNamingStrategy ForeignKeyNamingStrategy = ForeignKeyNamingStrategy.Legacy; // Please use Legacy for now (same as versions <= v3.6.1), Latest (not yet ready)
public static ForeignKeyNamingStrategy ForeignKeyNamingStrategy = ForeignKeyNamingStrategy.Legacy; // Please use Legacy for now (same as versions <= v3.7.0), Latest (not yet ready)
public static bool UseMappingTables = false; // Can only be set to true for EF6. If true, mapping will be used and no mapping tables will be generated. If false, all tables will be generated.
public static FileManagerType FileManagerType = FileManagerType.EfCore; // .NET Core project = EfCore; .NET 4.x project = VisualStudio; No output (testing only) = Null
public static string ConnectionString = ""; // This is used by the generator to reverse engineer your database
Expand Down
Binary file modified ItemTemplate/ItemTemplates/efrpoco.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion ItemTemplate/MyTemplate.vstemplate
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Icon>TemplateIcon.ico</Icon>
<PreviewImage>PreviewImage.png</PreviewImage>
<NumberOfParentCategoriesToRollUp>1</NumberOfParentCategoriesToRollUp>
<Version>3.6.1</Version>
<Version>3.7.0</Version>
</TemplateData>
<TemplateContent>
<ProjectItem SubType="" TargetFileName="$fileinputname$.tt" ReplaceParameters="false">Database.tt</ProjectItem>
Expand Down

0 comments on commit 0b1abce

Please sign in to comment.