Skip to content

Commit b19bce9

Browse files
committed
Tsql: Add/delete key action added
1 parent b7fcb7b commit b19bce9

32 files changed

+73
-54
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
namespace KY.Generator.AspDotNet
2+
{
3+
internal class GeneratorConfigurationConfigureModule
4+
{
5+
public string Module { get; set; }
6+
public string Action { get; set; }
7+
8+
public GeneratorConfigurationConfigureModule()
9+
{ }
10+
11+
public GeneratorConfigurationConfigureModule(string module, string action)
12+
{
13+
this.Module = module;
14+
this.Action = action;
15+
}
16+
}
17+
}

AspDotNet/GeneratorConfigurationReader.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@ public ConfigurationBase Read(XElement rootElement, XElement configurationElemen
1818
GeneratorConfiguration configuration = new GeneratorConfiguration();
1919
this.ReadBase(rootElement, configuration);
2020
this.ReadBase(configurationElement, configuration);
21-
XmlConverter.MapList("PreloadModule", nameof(GeneratorConfigurationController.PreloadModules))
22-
.MapList("Using", nameof(GeneratorConfigurationController.Usings))
23-
.MapList("Configure", nameof(GeneratorConfigurationController.Configures))
24-
.Map("Configure", element => new GeneratorConfigurationConfigureModule(element.GetStringAttribute("Module"), element.Value))
25-
.Deserialize(configurationElement, configuration);
21+
XmlConverter.Map(x => x.Name("PreloadModule").ToList(nameof(GeneratorConfigurationController.PreloadModules)))
22+
.Map(x => x.Name("Using").ToList(nameof(GeneratorConfigurationController.Usings)))
23+
.Map(x => x.Name("Configure").ToList(nameof(GeneratorConfigurationController.Configures)).As(element => new GeneratorConfigurationConfigureModule(element.GetStringAttribute("Module"), element.Value)))
24+
.Deserialize(configurationElement, configuration);
2625
return configuration;
2726
}
2827
}

AspDotNet/KY.Generator.AspDotNet.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
<WarningLevel>4</WarningLevel>
3232
</PropertyGroup>
3333
<ItemGroup>
34-
<Reference Include="KY.Core.Common, Version=3.5.1480.0, Culture=neutral, processorArchitecture=MSIL">
35-
<HintPath>..\packages\KY.Core.Common.3.5.1480\lib\net40\KY.Core.Common.dll</HintPath>
34+
<Reference Include="KY.Core.Common, Version=3.6.1486.0, Culture=neutral, processorArchitecture=MSIL">
35+
<HintPath>..\packages\KY.Core.Common.3.6.1486\lib\net40\KY.Core.Common.dll</HintPath>
3636
</Reference>
3737
<Reference Include="System" />
3838
<Reference Include="System.Core" />

AspDotNet/KY.Generator.AspDotNet.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<copyright>Copyright 2018</copyright>
1616
<tags>KY Generator ASP.net</tags>
1717
<dependencies>
18-
<dependency id="KY.Core.Common" version="3.5.1480" />
18+
<dependency id="KY.Core.Common" version="3.6.1486" />
1919
<dependency id="KY.Generator.Core" version="0.7.1480" />
2020
<dependency id="KY.Generator.Csharp" version="0.7.1480" />
2121
</dependencies>

AspDotNet/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@
3030
// You can specify all the values or you can default the Build and Revision Numbers
3131
// by using the '*' as shown below:
3232
// [assembly: AssemblyVersion("1.0.*")]
33-
[assembly: AssemblyVersion("0.7.1485")]
33+
[assembly: AssemblyVersion("0.7.1486")]
3434
[assembly: AssemblyFileVersion("0.7.0.0")]

AspDotNet/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="KY.Core.Common" version="3.5.1480" targetFramework="net452" />
3+
<package id="KY.Core.Common" version="3.6.1486" targetFramework="net452" />
44
</packages>

CSharp/KY.Generator.Csharp.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
<WarningLevel>4</WarningLevel>
3232
</PropertyGroup>
3333
<ItemGroup>
34-
<Reference Include="KY.Core.Common, Version=3.5.1480.0, Culture=neutral, processorArchitecture=MSIL">
35-
<HintPath>..\packages\KY.Core.Common.3.5.1480\lib\net40\KY.Core.Common.dll</HintPath>
34+
<Reference Include="KY.Core.Common, Version=3.6.1486.0, Culture=neutral, processorArchitecture=MSIL">
35+
<HintPath>..\packages\KY.Core.Common.3.6.1486\lib\net40\KY.Core.Common.dll</HintPath>
3636
</Reference>
3737
<Reference Include="KY.Core.Meta, Version=3.5.1480.0, Culture=neutral, processorArchitecture=MSIL">
3838
<HintPath>..\packages\KY.Core.Meta.3.5.1480\lib\net452\KY.Core.Meta.dll</HintPath>

CSharp/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="KY.Core.Common" version="3.5.1480" targetFramework="net452" />
3+
<package id="KY.Core.Common" version="3.6.1486" targetFramework="net452" />
44
<package id="KY.Core.Meta" version="3.5.1480" targetFramework="net452" />
55
</packages>

Console/KY.Generator.Console.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
<Reference Include="Costura, Version=2.0.1.0, Culture=neutral, PublicKeyToken=9919ef960d84173d, processorArchitecture=MSIL">
3838
<HintPath>..\packages\Costura.Fody.2.0.1\lib\net452\Costura.dll</HintPath>
3939
</Reference>
40-
<Reference Include="KY.Core.Common, Version=3.5.1480.0, Culture=neutral, processorArchitecture=MSIL">
41-
<HintPath>..\packages\KY.Core.Common.3.5.1480\lib\net40\KY.Core.Common.dll</HintPath>
40+
<Reference Include="KY.Core.Common, Version=3.6.1486.0, Culture=neutral, processorArchitecture=MSIL">
41+
<HintPath>..\packages\KY.Core.Common.3.6.1486\lib\net40\KY.Core.Common.dll</HintPath>
4242
</Reference>
4343
<Reference Include="System" />
4444
<Reference Include="System.Core" />

Console/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
<packages>
33
<package id="Costura.Fody" version="2.0.1" targetFramework="net462" developmentDependency="true" />
44
<package id="Fody" version="3.0.3" targetFramework="net462" developmentDependency="true" />
5-
<package id="KY.Core.Common" version="3.5.1480" targetFramework="net462" />
5+
<package id="KY.Core.Common" version="3.6.1486" targetFramework="net462" />
66
</packages>

0 commit comments

Comments
 (0)