diff --git a/.gitignore b/.gitignore
index 9491a2f..5714ccd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -360,4 +360,5 @@ MigrationBackup/
.ionide/
# Fody - auto-generated XML schema
-FodyWeavers.xsd
\ No newline at end of file
+FodyWeavers.xsd
+/GenCodeSetup
diff --git a/FreesqlGenCode.sln b/FreesqlGenCode.sln
index 96fce19..60998e6 100644
--- a/FreesqlGenCode.sln
+++ b/FreesqlGenCode.sln
@@ -24,6 +24,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "RazorTemplates", "RazorTemp
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GenTemplate", "GenTemplate\GenTemplate.csproj", "{1C848E5F-64CB-4590-AA6C-DFC90C12C003}"
EndProject
+Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "GenCodeSetup", "GenCodeSetup\GenCodeSetup.vdproj", "{A6C69E22-AAB2-42BD-AA6A-503863018639}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -58,6 +60,8 @@ Global
{1C848E5F-64CB-4590-AA6C-DFC90C12C003}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1C848E5F-64CB-4590-AA6C-DFC90C12C003}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1C848E5F-64CB-4590-AA6C-DFC90C12C003}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A6C69E22-AAB2-42BD-AA6A-503863018639}.Debug|Any CPU.ActiveCfg = Debug
+ {A6C69E22-AAB2-42BD-AA6A-503863018639}.Release|Any CPU.ActiveCfg = Release
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/FreesqlGenCode/FreesqlGenCode.csproj b/FreesqlGenCode/FreesqlGenCode.csproj
index 2d282ff..869d137 100644
--- a/FreesqlGenCode/FreesqlGenCode.csproj
+++ b/FreesqlGenCode/FreesqlGenCode.csproj
@@ -41,4 +41,8 @@
Always
+
+
+
+
\ No newline at end of file
diff --git a/FreesqlGenCode/Program.cs b/FreesqlGenCode/Program.cs
index 83aaae3..0f6daa2 100644
--- a/FreesqlGenCode/Program.cs
+++ b/FreesqlGenCode/Program.cs
@@ -1,4 +1,6 @@
using FreesqlGenCode.controls;
+using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.Hosting;
namespace FreesqlGenCode
{
@@ -10,11 +12,23 @@ internal static class Program
[STAThread]
static void Main()
{
- // To customize application configuration such as set high DPI settings or default font,
- // see https://aka.ms/applicationconfiguration.
+ MainAsync().GetAwaiter().GetResult();
+ }
+
+ private static async Task MainAsync()
+ {
+ var host = Host.CreateDefaultBuilder()
+ .ConfigureServices(services =>
+ {
+ services.AddSingleton();
+ })
+ .Build();
+ await host.StartAsync().ConfigureAwait(true);
+
ApplicationConfiguration.Initialize();
- Application.Run(new Form1());
- // Application.Run(new FormTestLine());
+ Application.Run(host.Services.GetRequiredService());
+
+ await host.StopAsync().ConfigureAwait(true);
}
}
}
\ No newline at end of file
diff --git a/README.md b/README.md
index 5fdd796..082185d 100644
--- a/README.md
+++ b/README.md
@@ -1 +1,15 @@
-# FreesqlGenCode
\ No newline at end of file
+# FreesqlGenCode
+可使用自定义模板的代码生成器
+
+使用FreeSql操作数据库
+
+图1:多表生成
+
+
+
+图2:单表生成
+
+
+
+图3:查询生成
+
\ No newline at end of file
diff --git a/imgs/cut001.png b/imgs/cut001.png
new file mode 100644
index 0000000..56f1f9a
Binary files /dev/null and b/imgs/cut001.png differ
diff --git a/imgs/cut002.png b/imgs/cut002.png
new file mode 100644
index 0000000..be6ca0b
Binary files /dev/null and b/imgs/cut002.png differ
diff --git a/imgs/cut003.png b/imgs/cut003.png
new file mode 100644
index 0000000..ce43983
Binary files /dev/null and b/imgs/cut003.png differ