Skip to content

Commit b30910a

Browse files
committed
Example updated to 0.8.1
1 parent 4f7e06c commit b30910a

File tree

5 files changed

+53
-67
lines changed

5 files changed

+53
-67
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,3 +286,4 @@ __pycache__/
286286
*.btm.cs
287287
*.odx.cs
288288
*.xsd.cs
289+
/Examples/KY.Generator.Examples.Reflection/KY.Generator.Examples.Reflection.Console/Output/*.ts

Examples/KY.Generator.Examples.Reflection/KY.Generator.Examples.Reflection.Console/KY.Generator.Examples.Reflection.Console.csproj

Lines changed: 11 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -32,53 +32,12 @@
3232
<ErrorReport>prompt</ErrorReport>
3333
<WarningLevel>4</WarningLevel>
3434
</PropertyGroup>
35+
<PropertyGroup>
36+
<RunPostBuildEvent>Always</RunPostBuildEvent>
37+
</PropertyGroup>
3538
<ItemGroup>
36-
<Reference Include="KY.Core.Common, Version=4.0.1.0, Culture=neutral, processorArchitecture=MSIL">
37-
<HintPath>..\packages\KY.Core.Common.4.0.1\lib\netstandard2.0\KY.Core.Common.dll</HintPath>
38-
</Reference>
39-
<Reference Include="KY.Core.Meta, Version=4.0.0.0, Culture=neutral, processorArchitecture=MSIL">
40-
<HintPath>..\packages\KY.Core.Meta.4.0.0\lib\netstandard2.0\KY.Core.Meta.dll</HintPath>
41-
</Reference>
42-
<Reference Include="KY.Core.Sql, Version=4.0.0.0, Culture=neutral, processorArchitecture=MSIL">
43-
<HintPath>..\packages\KY.Core.Sql.4.0.0\lib\netstandard2.0\KY.Core.Sql.dll</HintPath>
44-
</Reference>
45-
<Reference Include="KY.Generator.Angular, Version=0.8.0.0, Culture=neutral, processorArchitecture=MSIL">
46-
<HintPath>..\packages\KY.Generator.Angular.0.8.0\lib\netstandard2.0\KY.Generator.Angular.dll</HintPath>
47-
</Reference>
48-
<Reference Include="KY.Generator.AspDotNet, Version=0.8.0.0, Culture=neutral, processorArchitecture=MSIL">
49-
<HintPath>..\packages\KY.Generator.AspDotNet.0.8.0\lib\netstandard2.0\KY.Generator.AspDotNet.dll</HintPath>
50-
</Reference>
51-
<Reference Include="KY.Generator.Core, Version=0.8.0.0, Culture=neutral, processorArchitecture=MSIL">
52-
<HintPath>..\packages\KY.Generator.Core.0.8.0\lib\netstandard2.0\KY.Generator.Core.dll</HintPath>
53-
</Reference>
54-
<Reference Include="KY.Generator.CSharp, Version=0.8.0.0, Culture=neutral, processorArchitecture=MSIL">
55-
<HintPath>..\packages\KY.Generator.CSharp.0.8.0\lib\netstandard2.0\KY.Generator.CSharp.dll</HintPath>
56-
</Reference>
57-
<Reference Include="KY.Generator.OData, Version=0.8.0.0, Culture=neutral, processorArchitecture=MSIL">
58-
<HintPath>..\packages\KY.Generator.OData.0.8.0\lib\netstandard2.0\KY.Generator.OData.dll</HintPath>
59-
</Reference>
60-
<Reference Include="KY.Generator.Reflection, Version=0.8.0.0, Culture=neutral, processorArchitecture=MSIL">
61-
<HintPath>..\packages\KY.Generator.Reflection.0.8.0\lib\netstandard2.0\KY.Generator.Reflection.dll</HintPath>
62-
</Reference>
63-
<Reference Include="KY.Generator.Tsql, Version=0.8.0.0, Culture=neutral, processorArchitecture=MSIL">
64-
<HintPath>..\packages\KY.Generator.Tsql.0.8.0\lib\netstandard2.0\KY.Generator.Tsql.dll</HintPath>
65-
</Reference>
66-
<Reference Include="KY.Generator.TypeScript, Version=0.8.0.0, Culture=neutral, processorArchitecture=MSIL">
67-
<HintPath>..\packages\KY.Generator.TypeScript.0.8.0\lib\netstandard2.0\KY.Generator.TypeScript.dll</HintPath>
68-
</Reference>
69-
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
70-
<HintPath>..\packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
71-
</Reference>
7239
<Reference Include="System" />
7340
<Reference Include="System.Core" />
74-
<Reference Include="System.Data.Common, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
75-
<HintPath>..\packages\System.Data.Common.4.3.0\lib\net451\System.Data.Common.dll</HintPath>
76-
<Private>True</Private>
77-
<Private>True</Private>
78-
</Reference>
79-
<Reference Include="System.Data.SqlClient, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
80-
<HintPath>..\packages\System.Data.SqlClient.4.3.0\lib\net46\System.Data.SqlClient.dll</HintPath>
81-
</Reference>
8241
<Reference Include="System.Xml.Linq" />
8342
<Reference Include="System.Data.DataSetExtensions" />
8443
<Reference Include="Microsoft.CSharp" />
@@ -100,8 +59,15 @@
10059
<Name>KY.Generator.Examples.Reflection</Name>
10160
</ProjectReference>
10261
</ItemGroup>
62+
<ItemGroup>
63+
<Folder Include="Output\" />
64+
</ItemGroup>
10365
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
10466
<PropertyGroup>
105-
<PreBuildEvent>"$(SolutionDir)packages\KY.Generator.CLI.0.8.0\tools\KY.Generator.exe" reflection -assembly="$(TargetDir)KY.Generator.Examples.Reflection.dll" -namespace=KY.Generator.Examples.Reflection -name=ExampleType -relativePath=..\..\..\KY.Generator.Examples.Reflection.Console\Output -language=TypeScript</PreBuildEvent>
67+
<PreBuildEvent>
68+
</PreBuildEvent>
69+
</PropertyGroup>
70+
<PropertyGroup>
71+
<PostBuildEvent>"$(SolutionDir)packages\KY.Generator.CLI.Standalone.0.8.1\tools\KY.Generator.exe" reflection -assembly="$(TargetDir)KY.Generator.Examples.Reflection.dll" -namespace=KY.Generator.Examples.Reflection -name=ExampleType -relativePath=..\..\..\KY.Generator.Examples.Reflection.Console\Output -language=TypeScript -propertiesToFields -formatNames</PostBuildEvent>
10672
</PropertyGroup>
10773
</Project>
Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="KY.Core.Common" version="4.0.1" targetFramework="net461" />
4-
<package id="KY.Core.Meta" version="4.0.0" targetFramework="net461" />
5-
<package id="KY.Core.Sql" version="4.0.0" targetFramework="net461" />
6-
<package id="KY.Generator.Angular" version="0.8.0" targetFramework="net461" />
7-
<package id="KY.Generator.AspDotNet" version="0.8.0" targetFramework="net461" />
8-
<package id="KY.Generator.CLI" version="0.8.0" targetFramework="net461" />
9-
<package id="KY.Generator.Core" version="0.8.0" targetFramework="net461" />
10-
<package id="KY.Generator.CSharp" version="0.8.0" targetFramework="net461" />
11-
<package id="KY.Generator.OData" version="0.8.0" targetFramework="net461" />
12-
<package id="KY.Generator.Reflection" version="0.8.0" targetFramework="net461" />
13-
<package id="KY.Generator.Tsql" version="0.8.0" targetFramework="net461" />
14-
<package id="KY.Generator.TypeScript" version="0.8.0" targetFramework="net461" />
15-
<package id="Newtonsoft.Json" version="12.0.1" targetFramework="net461" />
16-
<package id="System.Data.Common" version="4.3.0" targetFramework="net461" />
17-
<package id="System.Data.SqlClient" version="4.3.0" targetFramework="net461" />
3+
<package id="KY.Generator.CLI.Standalone" version="0.8.1" targetFramework="net461" />
184
</packages>

Examples/KY.Generator.Examples.Reflection/KY.Generator.Examples.Reflection/ExampleType.cs

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,53 @@
1-
namespace KY.Generator.Examples.Reflection
1+
using System.Collections.Generic;
2+
3+
namespace KY.Generator.Examples.Reflection
24
{
35
public class ExampleType
46
{
57
// Types
68
public string StringProperty { get; set; }
9+
public short ShortProperty { get; set; }
10+
public ushort UShortProperty { get; set; }
711
public int IntProperty { get; set; }
12+
public uint UIntProperty { get; set; }
13+
public long LongProperty { get; set; }
14+
public ulong ULongProperty { get; set; }
15+
public float FloatProperty { get; set; }
816
public double DoubleProperty { get; set; }
917
public bool BoolProperty { get; set; }
18+
public object ObjectProperty { get; set; }
19+
20+
// System Types
21+
public System.String SystemStringProperty { get; set; }
22+
public System.Int16 SystemInt16Property { get; set; }
23+
public System.Int32 SystemInt32Property { get; set; }
24+
public System.Int64 SystemInt64Property { get; set; }
25+
public System.Single SystemSingleProperty { get; set; }
26+
public System.Double SystemDoubleProperty { get; set; }
27+
public System.DateTime SystemDateTimeProperty { get; set; }
28+
public System.Array SystemArrayProperty { get; set; }
29+
public System.Byte SystemByteProperty { get; set; }
30+
public System.Char SystemCharProperty { get; set; }
31+
public System.Decimal SystemDecimalProperty { get; set; }
32+
public System.Guid SystemGuidProperty { get; set; }
33+
public System.Object SystemObjectProperty { get; set; }
34+
public System.TimeSpan SystemTimeSpanProperty { get; set; }
35+
public System.UInt16 SystemUInt16Property { get; set; }
36+
public System.UInt32 SystemUInt32Property { get; set; }
37+
public System.UInt64 SystemUInt64Property { get; set; }
38+
39+
// Complex Types
1040
public SubType SubTypeProperty { get; set; }
1141

42+
// Generics
43+
public List<string> StringList { get; set; }
44+
public List<SubType> SubTypeList { get; set; }
45+
public Dictionary<string, string> StringStringDictionary { get; set; }
46+
public Dictionary<int, string> IntStringDictionary { get; set; }
47+
public Dictionary<string, SubType> StringSubTypeDictionary { get; set; }
48+
public Dictionary<int, SubType> IntSubTypeDictionary { get; set; }
49+
public Dictionary<SubType, string> SubTypeStringDictionary { get; set; }
50+
1251
// Accessors
1352
public string ReadonlyProperty => string.Empty;
1453
public string WriteonlyProperty { set {} }

Examples/KY.Generator.Examples.Reflection/KY.Generator.Examples.Reflection/KY.Generator.Examples.Reflection.csproj

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,6 @@
3333
<ItemGroup>
3434
<Reference Include="System" />
3535
<Reference Include="System.Core" />
36-
<Reference Include="System.Xml.Linq" />
37-
<Reference Include="System.Data.DataSetExtensions" />
38-
<Reference Include="Microsoft.CSharp" />
39-
<Reference Include="System.Data" />
40-
<Reference Include="System.Net.Http" />
41-
<Reference Include="System.Xml" />
4236
</ItemGroup>
4337
<ItemGroup>
4438
<Compile Include="ExampleType.cs" />

0 commit comments

Comments
 (0)