├── .gitignore ├── Angular.Tests ├── Configurations │ └── custom-client-type.json ├── FullStageTests.cs ├── KY.Generator.Angular.Tests.csproj ├── Properties │ ├── Resources.Designer.cs │ └── Resources.resx └── Results │ └── custom-values-service.ts.result ├── Angular ├── AngularModule.cs ├── Commands │ ├── AngularHttpClientMethodOptions.cs │ ├── AngularModelCommand.cs │ ├── AngularPackageCommand.cs │ ├── AngularPackageCommandParameters.cs │ ├── AngularPackageDependsOnParameter.cs │ ├── AngularServiceCommand.cs │ └── AngularServiceCommandParameters.cs ├── Configurations │ ├── AngularWriteConfiguration.cs │ ├── AngularWriteHttpClientConfiguration.cs │ ├── AngularWriteModelConfiguration.cs │ └── AngularWriteServiceConfiguration.cs ├── Fluent │ ├── AngularHttpClientSyntax.cs │ ├── AngularModelSyntax.cs │ ├── AngularPackageSyntax.cs │ ├── AngularServiceSyntax.cs │ ├── AngularWriteSyntax.cs │ ├── Extensions │ │ └── WriteFluentSyntaxExtension.cs │ ├── IAngularHttpClientMethodSyntax.cs │ ├── IAngularHttpClientSyntax.cs │ ├── IAngularModelSyntax.cs │ ├── IAngularPackageSyntax.cs │ ├── IAngularServiceSyntax.cs │ ├── IAngularWriteBaseSyntax.cs │ └── IAngularWriteSyntax.cs ├── KY.Generator.Angular.csproj ├── KY.Generator.Angular.csproj.DotSettings ├── Languages │ └── AngularTypeScriptLanguage.cs ├── Models │ └── IncrementVersion.cs ├── Options │ ├── AngularOptions.cs │ └── AngularOptionsFactory.cs ├── Templates │ └── generator.json └── Writers │ ├── AngularModelWriter.cs │ ├── AngularPackageBuilder.cs │ ├── AngularPackageWriter.cs │ └── AngularServiceWriter.cs ├── Annotations ├── Angular │ ├── GenerateAngularHubAttribute.cs │ ├── GenerateAngularModelAttribute.cs │ ├── GenerateAngularServiceAttribute.cs │ ├── GenerateServiceOutputAttribute.cs │ └── GenerateWithRetryAttribute.cs ├── Core │ ├── AttributeCommandConfiguration.cs │ ├── GenerateFieldsAsPropertiesAttribute.cs │ ├── GenerateFixCasingWithMappingAttribute.cs │ ├── GenerateFormatNamesAttribute.cs │ ├── GenerateModelOutputAttribute.cs │ ├── GenerateNoHeaderAttribute.cs │ ├── GenerateNoOptionalAttribute.cs │ ├── GenerateOnlySubTypesAttribute.cs │ ├── GeneratePreferInterfacesAttribute.cs │ ├── GeneratePropertiesAsFieldsAttribute.cs │ ├── GenerateRenameAttribute.cs │ ├── GenerateReturnTypeAttribute.cs │ ├── GenerateWithOptionalPropertiesAttribute.cs │ ├── IGeneratorCommandAdditionalParameterAttribute.cs │ ├── IGeneratorCommandAttribute.cs │ └── OutputLanguage.cs ├── Csharp │ └── GenerateCsharpModelAttribute.cs ├── KY.Generator.Annotations.csproj ├── KY.Generator.Annotations.csproj.DotSettings ├── Legacy │ ├── ProducesAttribute.cs │ └── ProducesResponseTypeAttribute.cs ├── README.md ├── Reflection │ ├── GenerateAsyncAttribute.cs │ ├── GenerateIgnoreAttribute.cs │ └── GenerateIgnoreGenericAttribute.cs ├── Sqlite │ ├── GenerateAsAutoIncrementAttribute.cs │ ├── GenerateAsNotNullAttribute.cs │ ├── GenerateAsPrimaryKeyAttribute.cs │ └── GenerateSqliteRepositoryAttribute.cs └── TypeScript │ ├── GenerateForceIndexAttribute.cs │ ├── GenerateImportAttribute.cs │ ├── GenerateNoIndexAttribute.cs │ ├── GenerateStrictAttribute.cs │ └── GenerateTypeScriptModelAttribute.cs ├── AspDotNet.Tests ├── Configurations │ ├── generator-controller-core.generator.json │ └── generator-controller.generator.json ├── FullStageTests.cs ├── KY.Generator.AspDotNet.Tests.csproj ├── Properties │ ├── Resources.Designer.cs │ └── Resources.resx ├── Results │ ├── GeneratorController.cs.result │ └── GeneratorCoreController.cs.result └── more-tests.md ├── AspDotNet ├── AspDotNetModule.cs ├── Commands │ ├── AspDotNetReadControllerCommand.cs │ ├── AspDotNetReadControllerCommandParameters.cs │ ├── AspDotNetReadHubCommand.cs │ └── AspDotNetReadHubCommandParameters.cs ├── Configurations │ ├── AspDotNetControllerConfigureModule.cs │ ├── AspDotNetCoreWriteConfiguration.cs │ ├── AspDotNetReadConfiguration.cs │ ├── AspDotNetReadControllerConfiguration.cs │ ├── AspDotNetReadHubConfiguration.cs │ ├── AspDotNetWriteConfiguration.cs │ ├── AspDotNetWriteEntityControllerActionAttributeConfiguration.cs │ ├── AspDotNetWriteEntityControllerActionAttributeValueConfiguration.cs │ ├── AspDotNetWriteEntityControllerActionConfiguration.cs │ ├── AspDotNetWriteEntityControllerConfiguration.cs │ └── AspDotNetWriteGeneratorControllerConfiguration.cs ├── Fluent │ ├── AspDotNetReadSyntax.cs │ ├── Extensions │ │ └── ReadFluentSyntaxExtension.cs │ └── IAspDotNetReadSyntax.cs ├── KY.Generator.AspDotNet.csproj ├── KY.Generator.AspDotNet.csproj.DotSettings ├── Options │ ├── AspDotNetOptions.cs │ └── AspDotNetOptionsFactory.cs ├── Readers │ ├── AspDotNetControllerReader.cs │ ├── AspDotNetHubReader.cs │ └── AspDotNetReader.cs ├── Templates │ ├── DotNetCoreTemplate.cs │ ├── DotNetFrameworkTemplate.cs │ └── ITemplate.cs └── Writers │ ├── AspDotNetEntityControllerWriter.cs │ ├── AspDotNetGeneratorControllerWriter.cs │ ├── AspDotNetODataControllerWriter.cs │ └── AspDotNetWriter.cs ├── CLI ├── App.config ├── FodyWeavers.xml ├── FodyWeavers.xsd ├── KY.Generator.CLI.csproj ├── Program.cs ├── Properties │ └── AssemblyInfo.cs ├── nuget.nuspec └── packages.config ├── Common.Tests ├── CaseTest.cs ├── CliCommandReaderTest.cs ├── KY.Generator.Common.Tests.csproj ├── ModelWriterTests.cs ├── Models │ ├── TestConfiguration.cs │ ├── TestLanguage.cs │ └── TestOutput.cs └── TemplateWriterTests.cs ├── Common ├── Client │ ├── ClientCommand.cs │ ├── GeneratorClient.cs │ ├── GeneratorClientConfiguration.cs │ └── GeneratorConfiguration.cs ├── Command │ ├── CliCommand.cs │ ├── CliCommandParameter.cs │ ├── CliCommandReader.cs │ ├── ErrorResult.cs │ ├── Extensions │ │ └── OptionsExtension.cs │ ├── GeneratorCommand.cs │ ├── GeneratorCommandFactory.cs │ ├── GeneratorCommandParameters.cs │ ├── GeneratorCommandRunner.cs │ ├── GeneratorGlobalParameterAttribute.cs │ ├── GeneratorParameterAttribute.cs │ ├── IGeneratorCommand.cs │ ├── IGeneratorCommandResult.cs │ ├── IPrepareCommand.cs │ ├── SuccessResult.cs │ ├── SwitchAsyncResult.cs │ └── SwitchContextResult.cs ├── Commands │ ├── CleanupCommand.cs │ ├── CleanupCommandParameters.cs │ ├── GetLicenseCommand.cs │ ├── GetLicenseCommandParameters.cs │ ├── OptionsCommand.cs │ ├── OptionsCommandParameters.cs │ ├── ReadProjectCommand.cs │ ├── ReadProjectCommandParameters.cs │ ├── StatisticsCommand.cs │ ├── StatisticsCommandParameters.cs │ ├── VersionCommand.cs │ └── VersionCommandParameters.cs ├── Configurations │ ├── CookieConfiguration.cs │ ├── ExecuteConfiguration.cs │ ├── IModelConfiguration.cs │ └── ModelWriteConfiguration.cs ├── CoreModule.cs ├── DEPRECATED.md ├── Extensions │ ├── AssemblyExtension.cs │ ├── DependencyResolverExtension.cs │ ├── FileNameReplacerExtension.cs │ ├── FileTemplateExtension.cs │ ├── FrameworkNameExtension.cs │ ├── StringExtensions.cs │ ├── SwitchableFrameworkExtension.cs │ ├── TimeSpanExtension.cs │ ├── TypeExtension.cs │ └── TypeTransferObjectExtension.cs ├── Generator.cs ├── Helpers │ ├── AssemblyCache.cs │ ├── Case.cs │ ├── Code.cs │ ├── Codeable.cs │ ├── CommandLineHelper.cs │ ├── ExecutingCode.cs │ ├── Formatter.cs │ ├── ForwardConsoleTarget.cs │ ├── GeneratorAssemblyLocator.cs │ ├── GeneratorErrors.cs │ ├── GeneratorProcess.cs │ ├── GeneratorTypeLoader.cs │ ├── LaunchSettingsReader.cs │ ├── StructuralCode.cs │ ├── TypeCode.cs │ └── VisualStudioParser.cs ├── KY.Generator.Common.csproj ├── KY.Generator.Common.csproj.DotSettings ├── Languages │ ├── BaseLanguage.cs │ ├── EmptyLanguage.cs │ └── ILanguage.cs ├── Licensing │ ├── GlobalLicenseService.cs │ ├── License.cs │ ├── LicenseService.cs │ ├── Message.cs │ ├── MessageType.cs │ └── SignedLicense.cs ├── Main.cs ├── Mappings │ ├── ClassMapping.cs │ ├── ClassMappingReader.cs │ ├── Extensions │ │ ├── ClassMappingListExtension.cs │ │ ├── FieldMappingListExtension.cs │ │ └── PropertyMappingListExtension.cs │ ├── FieldMapping.cs │ ├── FieldMappingReader.cs │ ├── ITypeMapping.cs │ ├── ITypeMappingFromSyntax.cs │ ├── ITypeMappingMapSyntax.cs │ ├── ITypeMappingTypeOrToDetailsSyntax.cs │ ├── ITypeMappingTypeSyntax.cs │ ├── PropertyMapping.cs │ ├── PropertyMappingReader.cs │ ├── TypeMapping.cs │ ├── TypeMappingEntry.cs │ └── TypeMappingSyntax.cs ├── Models │ ├── CaseMode.cs │ ├── FileNameReplacer.cs │ ├── FrameworkNameAttribute.cs │ ├── GeneratorEnvironment.cs │ ├── IEnvironment.cs │ ├── Import.cs │ ├── SwitchableFramework.cs │ └── Visibility.cs ├── Options │ ├── FormattingOptions.cs │ ├── GeneratorOptions.cs │ ├── GeneratorOptionsFactory.cs │ ├── IOptionsFactory.cs │ ├── Options.cs │ ├── OptionsBase.cs │ └── OptionsMapping.cs ├── Output │ ├── FileOutput.cs │ ├── FileWriter.cs │ ├── FileWriterCondition.cs │ ├── IOutput.cs │ ├── IOutputAction.cs │ ├── IOutputCache.cs │ ├── IOutputCacheBase.cs │ ├── MemoryOutput.cs │ ├── NoOperationFileWriter.cs │ ├── OutputDeleteAction.cs │ ├── OutputFileHelper.cs │ ├── OutputRemoveIdAction.cs │ └── OutputWriteAction.cs ├── Properties │ ├── Resources.Designer.cs │ └── Resources.resx ├── README.md ├── Settings │ ├── GlobalSettings.cs │ └── GlobalSettingsService.cs ├── Statistics │ ├── CommandStatistic.cs │ ├── GlobalStatistic.cs │ ├── GlobalStatisticsService.cs │ ├── Measurement.cs │ ├── Statistic.cs │ └── StatisticsService.cs ├── Syntax │ └── IGeneratorRunSyntax.cs ├── Templates │ ├── Base │ │ ├── AttributeableTempalte.cs │ │ ├── ChainedCodeFragment.cs │ │ ├── ICodeFragment.cs │ │ └── MultilineCodeFragment.cs │ ├── Executing │ │ ├── AccessIndexTemplate.cs │ │ ├── AppendAssignStringTemplate.cs │ │ ├── AppendStringTemplate.cs │ │ ├── AsTemplate.cs │ │ ├── AssignTemplate.cs │ │ ├── BaseTemplate.cs │ │ ├── BlankLineTemplate.cs │ │ ├── CaseTemplate.cs │ │ ├── CastTemplate.cs │ │ ├── DeclareTemplate.cs │ │ ├── ElseIfTemplate.cs │ │ ├── ElseTemplate.cs │ │ ├── ExecuteFieldTemplate.cs │ │ ├── ExecuteGenericMethodTemplate.cs │ │ ├── ExecuteMethodTemplate.cs │ │ ├── ExecutePropertyTemplate.cs │ │ ├── IfTemplate.cs │ │ ├── InlineIfTemplate.cs │ │ ├── LambdaTemplate.cs │ │ ├── LocalVariableTemplate.cs │ │ ├── MathematicalOperatorTemplate.cs │ │ ├── NewTemplate.cs │ │ ├── NotTemplate.cs │ │ ├── NullCoalescingTemplate.cs │ │ ├── NullConditionalTemplate.cs │ │ ├── NullValueTemplate.cs │ │ ├── OperatorTemplate.cs │ │ ├── ParenthesisTemplate.cs │ │ ├── ReturnTemplate.cs │ │ ├── SwitchTemplate.cs │ │ ├── ThisTemplate.cs │ │ ├── ThrowTemplate.cs │ │ ├── TypeOfTemplate.cs │ │ └── WhileTemplate.cs │ ├── Extensions │ │ ├── AnonymousObjectTemplateExtension.cs │ │ ├── AttributableTemplateExtension.cs │ │ ├── ChainedCodeFragmentExtension.cs │ │ ├── ClassTemplateExtension.cs │ │ ├── CommentTemplateExtension.cs │ │ ├── DeclareTemplateExtension.cs │ │ ├── EnumTemplateExtension.cs │ │ ├── ExecuteMethodTemplateExtension.cs │ │ ├── FieldTemplateExtension.cs │ │ ├── FileTemplateExtension.cs │ │ ├── FileTemplateListExtension.cs │ │ ├── IfTemplateExtension.cs │ │ ├── MethodTemplateExtension.cs │ │ ├── NamespaceExtension.cs │ │ ├── ParameterTemplateExtension.cs │ │ ├── PropertyTemplateExtension.cs │ │ ├── PropertyValueTemplateExtension.cs │ │ └── WhileTemplateExtension.cs │ ├── Structural │ │ ├── AttributeTemplate.cs │ │ ├── BaseTypeTemplate.cs │ │ ├── ClassGenericTemplate.cs │ │ ├── ClassTemplate.cs │ │ ├── CommentTemplate.cs │ │ ├── ConstraintTemplate.cs │ │ ├── EnumTemplate.cs │ │ ├── EnumValueTemplate.cs │ │ ├── ExportTemplate.cs │ │ ├── ExtensionMethodTemplate.cs │ │ ├── FieldTemplate.cs │ │ ├── FileTemplate.cs │ │ ├── GenericTypeTemplate.cs │ │ ├── LinkedGenericTypeTemplate.cs │ │ ├── LinkedTypeTemplate.cs │ │ ├── LinkedUsingTemplate.cs │ │ ├── MethodGenericTemplate.cs │ │ ├── MethodTemplate.cs │ │ ├── NamespaceTemplate.cs │ │ ├── ParameterTemplate.cs │ │ ├── PropertyTemplate.cs │ │ ├── StaticFileTemplate.cs │ │ ├── TypeTemplate.cs │ │ └── UsingTemplate.cs │ └── Types │ │ ├── AnonymousObjectTemplate.cs │ │ ├── BooleanTemplate.cs │ │ ├── DateTimeTemplate.cs │ │ ├── NullTemplate.cs │ │ ├── NumberTemplate.cs │ │ ├── PropertyValueTemplate.cs │ │ ├── StringTemplate.cs │ │ └── VoidTemplate.cs ├── Transfer │ ├── AttributeTransferObject.cs │ ├── ControllerTransferObject.cs │ ├── EntityActionParameterTransferObject.cs │ ├── EntityActionTransferObject.cs │ ├── EntityKeyTransferObject.cs │ ├── EntitySetTransferObject.cs │ ├── EntityTransferObject.cs │ ├── Extensions │ │ └── TypeTransferObjectExtension.cs │ ├── FieldTransferObject.cs │ ├── GenericAliasTransferObject.cs │ ├── GenericModelTransferObject.cs │ ├── HttpServiceActionParameterTransferObject.cs │ ├── HttpServiceActionTransferObject.cs │ ├── HttpServiceActionTypeTransferObject.cs │ ├── HttpServiceActionTypeTransferObjectExtension.cs │ ├── HttpServiceTransferObject.cs │ ├── ITransferObject.cs │ ├── MemberTransferObject.cs │ ├── MethodParameterTransferObject.cs │ ├── MethodTransferObject.cs │ ├── ModelTransferObject.cs │ ├── PropertyTransferObject.cs │ ├── Readers │ │ ├── CookieReader.cs │ │ └── ITransferReader.cs │ ├── SignalRHubTransferObject.cs │ ├── TransferObject.cs │ ├── TypeTransferObject.cs │ └── Writers │ │ ├── ITransferWriter.cs │ │ ├── ModelWriter.cs │ │ └── TransferWriter.cs └── Writers │ ├── AccessIndexWriter.cs │ ├── AppendAssignStringWriter.cs │ ├── AppendStringWriter.cs │ ├── AsWriter.cs │ ├── AssignWriter.cs │ ├── BlankLineWriter.cs │ ├── BooleanWriter.cs │ ├── CaseWriter.cs │ ├── ChainedCodeFragmentWriter.cs │ ├── ClassGenericWriter.cs │ ├── ClassWriter.cs │ ├── CommentWriter.cs │ ├── DateTimeWriter.cs │ ├── DefaultTypeWriter.cs │ ├── ElseIfWriter.cs │ ├── ElseWriter.cs │ ├── EnumWriter.cs │ ├── ExecuteFieldWriter.cs │ ├── ExecuteGenericMethodWriter.cs │ ├── ExecuteMethodWriter.cs │ ├── ExecutePropertyWriter.cs │ ├── FieldWriter.cs │ ├── FileWriter.cs │ ├── GenericTypeWriter.cs │ ├── IGenericTypeWriter.cs │ ├── ITemplateWriter.cs │ ├── ITypeWriter.cs │ ├── IfWriter.cs │ ├── InlineIfWriter.cs │ ├── LambdaWriter.cs │ ├── LocalVariableWriter.cs │ ├── MathWriter.cs │ ├── MethodGenericWriter.cs │ ├── MethodWriter.cs │ ├── MultilineCodeFragmentWriter.cs │ ├── NamespaceWriter.cs │ ├── NewWriter.cs │ ├── NotWriter.cs │ ├── NullCoalescingWriter.cs │ ├── NullConditionalWriter.cs │ ├── NullValueWriter.cs │ ├── NullWriter.cs │ ├── NumberWriter.cs │ ├── OperatorWriter.cs │ ├── ParenthesisWriter.cs │ ├── PropertyWriter.cs │ ├── ReturnWriter.cs │ ├── StringWriter.cs │ ├── SwitchWriter.cs │ ├── ThisWriter.cs │ ├── TypeOfWriter.cs │ ├── TypeWriter.cs │ ├── VoidWriter.cs │ └── WhileWriter.cs ├── Csharp.Tests ├── KY.Generator.Csharp.Tests.csproj └── TemplateWriterTests.cs ├── Csharp ├── CsharpModule.cs ├── Extensions │ ├── ClassTemplateExtension.cs │ └── ConstructorTemplateExtension.cs ├── Helpers │ └── CsharpCode.cs ├── KY.Generator.CSharp.csproj ├── KY.Generator.CSharp.csproj.DotSettings ├── Languages │ ├── CsharpLanguage.cs │ └── LanguageExtension.cs ├── Templates │ ├── ConstructorTemplate.cs │ ├── CsharpTemplate.cs │ ├── UsingDeclarationTemplate.cs │ ├── VerbatimStringTemplate.cs │ └── YieldReturnTemplate.cs └── Writers │ ├── AttributeWriter.cs │ ├── BaseTypeWriter.cs │ ├── BaseWriter.cs │ ├── CastWriter.cs │ ├── CommentWriter.cs │ ├── ConstraintWriter.cs │ ├── ConstructorWriter.cs │ ├── CsharpClassWriter.cs │ ├── CsharpFileWriter.cs │ ├── CsharpGenericTypeWriter.cs │ ├── CsharpWriter.cs │ ├── DeclareWriter.cs │ ├── ParameterWriter.cs │ ├── ThrowWriter.cs │ ├── UsingDeclarationWriter.cs │ ├── UsingWriter.cs │ ├── VerbatimStringWriter.cs │ └── YieldReturnWriter.cs ├── EntityFramework ├── Configurations │ ├── EntityFrameworkCoreWriteConfiguration.cs │ ├── EntityFrameworkDataContextConfiguration.cs │ ├── EntityFrameworkWriteConfiguration.cs │ ├── EntityFrameworkWriteRepositoryConfiguration.cs │ └── Fluent │ │ ├── FluentSetting.cs │ │ ├── FluentStoredProcedure.cs │ │ ├── FluentStoredProcedureAction.cs │ │ └── IFluentLanguageElement.cs ├── EntityFrameworkModule.cs ├── KY.Generator.EntityFramework.csproj └── Writers │ ├── EntityFrameworkDataContextWriter.cs │ ├── EntityFrameworkRepositoryWriter.cs │ └── EntityFrameworkWriter.cs ├── Examples ├── Angular │ ├── Annotation │ │ ├── ChangeReturnType.sln │ │ ├── ChangeReturnType │ │ │ ├── .gitignore │ │ │ ├── ChangeReturnType.csproj │ │ │ ├── ClientApp │ │ │ │ ├── .browserslistrc │ │ │ │ ├── .editorconfig │ │ │ │ ├── .gitignore │ │ │ │ ├── README.md │ │ │ │ ├── angular.json │ │ │ │ ├── aspnetcore-https.js │ │ │ │ ├── karma.conf.js │ │ │ │ ├── package-lock.json │ │ │ │ ├── package.json │ │ │ │ ├── proxy.conf.js │ │ │ │ ├── src │ │ │ │ │ ├── app │ │ │ │ │ │ ├── app.component.html │ │ │ │ │ │ ├── app.component.ts │ │ │ │ │ │ ├── app.module.ts │ │ │ │ │ │ ├── app.server.module.ts │ │ │ │ │ │ ├── counter │ │ │ │ │ │ │ ├── counter.component.html │ │ │ │ │ │ │ ├── counter.component.spec.ts │ │ │ │ │ │ │ └── counter.component.ts │ │ │ │ │ │ ├── fetch-data │ │ │ │ │ │ │ ├── fetch-data.component.html │ │ │ │ │ │ │ └── fetch-data.component.ts │ │ │ │ │ │ ├── home │ │ │ │ │ │ │ ├── home.component.html │ │ │ │ │ │ │ └── home.component.ts │ │ │ │ │ │ ├── models │ │ │ │ │ │ │ ├── custom-weather-forecast.ts │ │ │ │ │ │ │ └── weather-forecast.ts │ │ │ │ │ │ ├── nav-menu │ │ │ │ │ │ │ ├── nav-menu.component.css │ │ │ │ │ │ │ ├── nav-menu.component.html │ │ │ │ │ │ │ └── nav-menu.component.ts │ │ │ │ │ │ └── services │ │ │ │ │ │ │ └── weather-forecast-api.service.ts │ │ │ │ │ ├── assets │ │ │ │ │ │ └── .gitkeep │ │ │ │ │ ├── environments │ │ │ │ │ │ ├── environment.prod.ts │ │ │ │ │ │ └── environment.ts │ │ │ │ │ ├── index.html │ │ │ │ │ ├── main.ts │ │ │ │ │ ├── polyfills.ts │ │ │ │ │ ├── styles.css │ │ │ │ │ └── test.ts │ │ │ │ ├── tsconfig.app.json │ │ │ │ ├── tsconfig.json │ │ │ │ └── tsconfig.spec.json │ │ │ ├── Controllers │ │ │ │ └── WeatherForecastController.cs │ │ │ ├── Pages │ │ │ │ ├── Error.cshtml │ │ │ │ ├── Error.cshtml.cs │ │ │ │ └── _ViewImports.cshtml │ │ │ ├── Program.cs │ │ │ ├── SpecialWeatherForecast.cs │ │ │ ├── WeatherForecast.cs │ │ │ ├── appsettings.Development.json │ │ │ ├── appsettings.json │ │ │ └── wwwroot │ │ │ │ └── favicon.ico │ │ ├── FromModel.sln │ │ ├── FromModel │ │ │ ├── FromModel.csproj │ │ │ ├── Output │ │ │ │ └── Models │ │ │ │ │ └── type-to-read.ts │ │ │ └── TypeToRead.cs │ │ ├── ModelFromAssembly.sln │ │ ├── ModelFromAssembly │ │ │ ├── AnotherType.cs │ │ │ ├── IgnoredType.cs │ │ │ ├── Index.cs │ │ │ ├── ModelFromAssembly.csproj │ │ │ ├── Output │ │ │ │ ├── another-type.ts │ │ │ │ ├── index.ts │ │ │ │ └── type-to-read.ts │ │ │ └── TypeToRead.cs │ │ ├── ServiceFromAspNetCore.sln │ │ ├── ServiceFromAspNetCore │ │ │ ├── .gitignore │ │ │ ├── ClientApp │ │ │ │ ├── .editorconfig │ │ │ │ ├── .gitignore │ │ │ │ ├── README.md │ │ │ │ ├── angular.json │ │ │ │ ├── browserslist │ │ │ │ ├── e2e │ │ │ │ │ ├── protractor.conf.js │ │ │ │ │ ├── src │ │ │ │ │ │ ├── app.e2e-spec.ts │ │ │ │ │ │ └── app.po.ts │ │ │ │ │ └── tsconfig.e2e.json │ │ │ │ ├── package-lock.json │ │ │ │ ├── package.json │ │ │ │ ├── src │ │ │ │ │ ├── app │ │ │ │ │ │ ├── app.component.html │ │ │ │ │ │ ├── app.component.ts │ │ │ │ │ │ ├── app.module.ts │ │ │ │ │ │ ├── app.server.module.ts │ │ │ │ │ │ ├── counter │ │ │ │ │ │ │ ├── counter.component.html │ │ │ │ │ │ │ ├── counter.component.spec.ts │ │ │ │ │ │ │ └── counter.component.ts │ │ │ │ │ │ ├── fetch-data │ │ │ │ │ │ │ ├── fetch-data.component.html │ │ │ │ │ │ │ └── fetch-data.component.ts │ │ │ │ │ │ ├── home │ │ │ │ │ │ │ ├── home.component.html │ │ │ │ │ │ │ └── home.component.ts │ │ │ │ │ │ ├── models │ │ │ │ │ │ │ └── weather-forecast.ts │ │ │ │ │ │ ├── nav-menu │ │ │ │ │ │ │ ├── nav-menu.component.css │ │ │ │ │ │ │ ├── nav-menu.component.html │ │ │ │ │ │ │ └── nav-menu.component.ts │ │ │ │ │ │ └── services │ │ │ │ │ │ │ └── weather-forecast.service.ts │ │ │ │ │ ├── assets │ │ │ │ │ │ └── .gitkeep │ │ │ │ │ ├── environments │ │ │ │ │ │ ├── environment.prod.ts │ │ │ │ │ │ └── environment.ts │ │ │ │ │ ├── index.html │ │ │ │ │ ├── karma.conf.js │ │ │ │ │ ├── main.ts │ │ │ │ │ ├── polyfills.ts │ │ │ │ │ ├── styles.css │ │ │ │ │ ├── test.ts │ │ │ │ │ ├── tsconfig.app.json │ │ │ │ │ ├── tsconfig.server.json │ │ │ │ │ ├── tsconfig.spec.json │ │ │ │ │ └── tslint.json │ │ │ │ ├── tsconfig.json │ │ │ │ └── tslint.json │ │ │ ├── Controllers │ │ │ │ └── WeatherForecastController.cs │ │ │ ├── Pages │ │ │ │ ├── Error.cshtml │ │ │ │ ├── Error.cshtml.cs │ │ │ │ └── _ViewImports.cshtml │ │ │ ├── Program.cs │ │ │ ├── ServiceFromAspNetCore.csproj │ │ │ ├── Startup.cs │ │ │ ├── WeatherForecast.cs │ │ │ ├── appsettings.Development.json │ │ │ ├── appsettings.json │ │ │ └── wwwroot │ │ │ │ └── favicon.ico │ │ ├── ServiceFromAspNetCoreSignalRHub.sln │ │ ├── ServiceFromAspNetCoreSignalRHub │ │ │ ├── .gitignore │ │ │ ├── ClientApp │ │ │ │ ├── .editorconfig │ │ │ │ ├── .gitignore │ │ │ │ ├── README.md │ │ │ │ ├── angular.json │ │ │ │ ├── browserslist │ │ │ │ ├── e2e │ │ │ │ │ ├── protractor.conf.js │ │ │ │ │ ├── src │ │ │ │ │ │ ├── app.e2e-spec.ts │ │ │ │ │ │ └── app.po.ts │ │ │ │ │ └── tsconfig.e2e.json │ │ │ │ ├── package-lock.json │ │ │ │ ├── package.json │ │ │ │ ├── src │ │ │ │ │ ├── app │ │ │ │ │ │ ├── app.component.html │ │ │ │ │ │ ├── app.component.ts │ │ │ │ │ │ ├── app.module.ts │ │ │ │ │ │ ├── app.server.module.ts │ │ │ │ │ │ ├── counter │ │ │ │ │ │ │ ├── counter.component.html │ │ │ │ │ │ │ ├── counter.component.spec.ts │ │ │ │ │ │ │ └── counter.component.ts │ │ │ │ │ │ ├── fetch-data │ │ │ │ │ │ │ ├── fetch-data.component.html │ │ │ │ │ │ │ └── fetch-data.component.ts │ │ │ │ │ │ ├── home │ │ │ │ │ │ │ ├── home.component.html │ │ │ │ │ │ │ └── home.component.ts │ │ │ │ │ │ ├── models │ │ │ │ │ │ │ ├── connection-status.ts │ │ │ │ │ │ │ └── weather-forecast.ts │ │ │ │ │ │ ├── nav-menu │ │ │ │ │ │ │ ├── nav-menu.component.css │ │ │ │ │ │ │ ├── nav-menu.component.html │ │ │ │ │ │ │ └── nav-menu.component.ts │ │ │ │ │ │ └── services │ │ │ │ │ │ │ └── weather-hub.service.ts │ │ │ │ │ ├── assets │ │ │ │ │ │ └── .gitkeep │ │ │ │ │ ├── environments │ │ │ │ │ │ ├── environment.prod.ts │ │ │ │ │ │ └── environment.ts │ │ │ │ │ ├── index.html │ │ │ │ │ ├── karma.conf.js │ │ │ │ │ ├── main.ts │ │ │ │ │ ├── polyfills.ts │ │ │ │ │ ├── styles.css │ │ │ │ │ ├── test.ts │ │ │ │ │ ├── tsconfig.app.json │ │ │ │ │ ├── tsconfig.server.json │ │ │ │ │ ├── tsconfig.spec.json │ │ │ │ │ └── tslint.json │ │ │ │ ├── tsconfig.json │ │ │ │ └── tslint.json │ │ │ ├── Controllers │ │ │ │ └── WeatherForecastController.cs │ │ │ ├── Hubs │ │ │ │ └── WeatherHub.cs │ │ │ ├── Models │ │ │ │ └── WeatherForecast.cs │ │ │ ├── Pages │ │ │ │ ├── Error.cshtml │ │ │ │ ├── Error.cshtml.cs │ │ │ │ └── _ViewImports.cshtml │ │ │ ├── Program.cs │ │ │ ├── ServiceFromAspNetCoreSignalRHub.csproj │ │ │ ├── Services │ │ │ │ └── WeatherService.cs │ │ │ ├── Startup.cs │ │ │ ├── appsettings.Development.json │ │ │ ├── appsettings.json │ │ │ └── wwwroot │ │ │ │ └── favicon.ico │ │ ├── Strict.sln │ │ ├── Strict │ │ │ ├── .gitignore │ │ │ ├── ClientApp │ │ │ │ ├── .browserslistrc │ │ │ │ ├── .editorconfig │ │ │ │ ├── .gitignore │ │ │ │ ├── README.md │ │ │ │ ├── angular.json │ │ │ │ ├── karma.conf.js │ │ │ │ ├── package-lock.json │ │ │ │ ├── package.json │ │ │ │ ├── src │ │ │ │ │ ├── app │ │ │ │ │ │ ├── app-routing.module.ts │ │ │ │ │ │ ├── app.component.html │ │ │ │ │ │ ├── app.component.scss │ │ │ │ │ │ ├── app.component.spec.ts │ │ │ │ │ │ ├── app.component.ts │ │ │ │ │ │ ├── app.module.ts │ │ │ │ │ │ ├── models │ │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ │ ├── sub-type.ts │ │ │ │ │ │ │ └── weather-forecast.ts │ │ │ │ │ │ └── services │ │ │ │ │ │ │ └── weather-forecast-api.service.ts │ │ │ │ │ ├── assets │ │ │ │ │ │ └── .gitkeep │ │ │ │ │ ├── environments │ │ │ │ │ │ ├── environment.prod.ts │ │ │ │ │ │ └── environment.ts │ │ │ │ │ ├── favicon.ico │ │ │ │ │ ├── index.html │ │ │ │ │ ├── main.ts │ │ │ │ │ ├── polyfills.ts │ │ │ │ │ ├── styles.scss │ │ │ │ │ └── test.ts │ │ │ │ ├── tsconfig.app.json │ │ │ │ ├── tsconfig.json │ │ │ │ └── tsconfig.spec.json │ │ │ ├── Controllers │ │ │ │ └── WeatherForecastController.cs │ │ │ ├── Pages │ │ │ │ ├── Error.cshtml │ │ │ │ ├── Error.cshtml.cs │ │ │ │ └── _ViewImports.cshtml │ │ │ ├── Program.cs │ │ │ ├── Startup.cs │ │ │ ├── Strict.csproj │ │ │ ├── WeatherForecast.cs │ │ │ ├── appsettings.Development.json │ │ │ ├── appsettings.json │ │ │ └── wwwroot │ │ │ │ └── favicon.ico │ │ └── build.cmd │ ├── Fluent │ │ ├── ChangeReturnType.sln │ │ ├── ChangeReturnType │ │ │ ├── Assembly │ │ │ │ ├── .gitignore │ │ │ │ ├── ChangeReturnType.csproj │ │ │ │ ├── ClientApp │ │ │ │ │ ├── .editorconfig │ │ │ │ │ ├── .gitignore │ │ │ │ │ ├── README.md │ │ │ │ │ ├── angular.json │ │ │ │ │ ├── browserslist │ │ │ │ │ ├── e2e │ │ │ │ │ │ ├── protractor.conf.js │ │ │ │ │ │ ├── src │ │ │ │ │ │ │ ├── app.e2e-spec.ts │ │ │ │ │ │ │ └── app.po.ts │ │ │ │ │ │ └── tsconfig.e2e.json │ │ │ │ │ ├── package-lock.json │ │ │ │ │ ├── package.json │ │ │ │ │ ├── src │ │ │ │ │ │ ├── app │ │ │ │ │ │ │ ├── app.component.html │ │ │ │ │ │ │ ├── app.component.ts │ │ │ │ │ │ │ ├── app.module.ts │ │ │ │ │ │ │ ├── app.server.module.ts │ │ │ │ │ │ │ ├── counter │ │ │ │ │ │ │ │ ├── counter.component.html │ │ │ │ │ │ │ │ ├── counter.component.spec.ts │ │ │ │ │ │ │ │ └── counter.component.ts │ │ │ │ │ │ │ ├── fetch-data │ │ │ │ │ │ │ │ ├── fetch-data.component.html │ │ │ │ │ │ │ │ └── fetch-data.component.ts │ │ │ │ │ │ │ ├── home │ │ │ │ │ │ │ │ ├── home.component.html │ │ │ │ │ │ │ │ └── home.component.ts │ │ │ │ │ │ │ ├── models │ │ │ │ │ │ │ │ ├── custom-weather-forecast.ts │ │ │ │ │ │ │ │ └── weather-forecast.ts │ │ │ │ │ │ │ ├── nav-menu │ │ │ │ │ │ │ │ ├── nav-menu.component.css │ │ │ │ │ │ │ │ ├── nav-menu.component.html │ │ │ │ │ │ │ │ └── nav-menu.component.ts │ │ │ │ │ │ │ └── services │ │ │ │ │ │ │ │ └── weather-forecast.service.ts │ │ │ │ │ │ ├── assets │ │ │ │ │ │ │ └── .gitkeep │ │ │ │ │ │ ├── environments │ │ │ │ │ │ │ ├── environment.prod.ts │ │ │ │ │ │ │ └── environment.ts │ │ │ │ │ │ ├── index.html │ │ │ │ │ │ ├── karma.conf.js │ │ │ │ │ │ ├── main.ts │ │ │ │ │ │ ├── polyfills.ts │ │ │ │ │ │ ├── styles.css │ │ │ │ │ │ ├── test.ts │ │ │ │ │ │ ├── tsconfig.app.json │ │ │ │ │ │ ├── tsconfig.server.json │ │ │ │ │ │ ├── tsconfig.spec.json │ │ │ │ │ │ └── tslint.json │ │ │ │ │ ├── tsconfig.json │ │ │ │ │ └── tslint.json │ │ │ │ ├── Controllers │ │ │ │ │ └── WeatherForecastController.cs │ │ │ │ ├── Pages │ │ │ │ │ ├── Error.cshtml │ │ │ │ │ ├── Error.cshtml.cs │ │ │ │ │ └── _ViewImports.cshtml │ │ │ │ ├── Program.cs │ │ │ │ ├── Startup.cs │ │ │ │ ├── WeatherForecast.cs │ │ │ │ ├── appsettings.Development.json │ │ │ │ ├── appsettings.json │ │ │ │ └── wwwroot │ │ │ │ │ └── favicon.ico │ │ │ └── Generator │ │ │ │ ├── Generator.csproj │ │ │ │ └── GeneratorMain.cs │ │ ├── FromModel.sln │ │ ├── FromModel │ │ │ ├── Assembly │ │ │ │ ├── FromModel.csproj │ │ │ │ └── TypeToRead.cs │ │ │ └── Generator │ │ │ │ ├── Generator.csproj │ │ │ │ ├── GeneratorMain.cs │ │ │ │ └── Output │ │ │ │ └── Models │ │ │ │ └── type-to-read.ts │ │ ├── GenerateInterfacesInsteadClasses.sln │ │ ├── GenerateInterfacesInsteadClasses │ │ │ ├── Assembly │ │ │ │ ├── GenerateInterfacesInsteadClasses.csproj │ │ │ │ └── TestModel.cs │ │ │ └── Generator │ │ │ │ ├── Generator.csproj │ │ │ │ ├── GeneratorMain.cs │ │ │ │ └── Output │ │ │ │ └── test-model.ts │ │ ├── NpmPackage.Generator │ │ │ ├── GeneratorMain.cs │ │ │ └── NpmPackage.Generator.csproj │ │ ├── NpmPackage.sln │ │ ├── NpmPackage │ │ │ ├── Controllers │ │ │ │ └── WeatherForecastController.cs │ │ │ ├── NpmPackage.csproj │ │ │ ├── Program.cs │ │ │ ├── Startup.cs │ │ │ ├── WeatherForecast.cs │ │ │ ├── appsettings.Development.json │ │ │ └── appsettings.json │ │ ├── ServiceFromAspNetCore.sln │ │ ├── ServiceFromAspNetCore │ │ │ ├── Generator │ │ │ │ ├── Generator.csproj │ │ │ │ └── GeneratorMain.cs │ │ │ └── Service │ │ │ │ ├── .gitignore │ │ │ │ ├── ClientApp │ │ │ │ ├── .editorconfig │ │ │ │ ├── .gitignore │ │ │ │ ├── README.md │ │ │ │ ├── angular.json │ │ │ │ ├── browserslist │ │ │ │ ├── e2e │ │ │ │ │ ├── protractor.conf.js │ │ │ │ │ ├── src │ │ │ │ │ │ ├── app.e2e-spec.ts │ │ │ │ │ │ └── app.po.ts │ │ │ │ │ └── tsconfig.e2e.json │ │ │ │ ├── package-lock.json │ │ │ │ ├── package.json │ │ │ │ ├── src │ │ │ │ │ ├── app │ │ │ │ │ │ ├── app.component.html │ │ │ │ │ │ ├── app.component.ts │ │ │ │ │ │ ├── app.module.ts │ │ │ │ │ │ ├── app.server.module.ts │ │ │ │ │ │ ├── counter │ │ │ │ │ │ │ ├── counter.component.html │ │ │ │ │ │ │ ├── counter.component.spec.ts │ │ │ │ │ │ │ └── counter.component.ts │ │ │ │ │ │ ├── fetch-data │ │ │ │ │ │ │ ├── fetch-data.component.html │ │ │ │ │ │ │ └── fetch-data.component.ts │ │ │ │ │ │ ├── home │ │ │ │ │ │ │ ├── home.component.html │ │ │ │ │ │ │ └── home.component.ts │ │ │ │ │ │ ├── models │ │ │ │ │ │ │ └── weather-forecast.ts │ │ │ │ │ │ ├── nav-menu │ │ │ │ │ │ │ ├── nav-menu.component.css │ │ │ │ │ │ │ ├── nav-menu.component.html │ │ │ │ │ │ │ └── nav-menu.component.ts │ │ │ │ │ │ └── services │ │ │ │ │ │ │ └── weather-forecast.service.ts │ │ │ │ │ ├── assets │ │ │ │ │ │ └── .gitkeep │ │ │ │ │ ├── environments │ │ │ │ │ │ ├── environment.prod.ts │ │ │ │ │ │ └── environment.ts │ │ │ │ │ ├── index.html │ │ │ │ │ ├── karma.conf.js │ │ │ │ │ ├── main.ts │ │ │ │ │ ├── polyfills.ts │ │ │ │ │ ├── styles.css │ │ │ │ │ ├── test.ts │ │ │ │ │ ├── tsconfig.app.json │ │ │ │ │ ├── tsconfig.server.json │ │ │ │ │ ├── tsconfig.spec.json │ │ │ │ │ └── tslint.json │ │ │ │ ├── tsconfig.json │ │ │ │ └── tslint.json │ │ │ │ ├── Controllers │ │ │ │ └── WeatherForecastController.cs │ │ │ │ ├── Pages │ │ │ │ ├── Error.cshtml │ │ │ │ ├── Error.cshtml.cs │ │ │ │ └── _ViewImports.cshtml │ │ │ │ ├── Program.cs │ │ │ │ ├── ServiceFromAspNetCore.csproj │ │ │ │ ├── Startup.cs │ │ │ │ ├── WeatherForecast.cs │ │ │ │ ├── appsettings.Development.json │ │ │ │ ├── appsettings.json │ │ │ │ └── wwwroot │ │ │ │ └── favicon.ico │ │ ├── ServiceFromSignalR.sln │ │ ├── ServiceFromSignalR │ │ │ ├── Generator │ │ │ │ ├── Generator.csproj │ │ │ │ └── GeneratorMain.cs │ │ │ └── Service │ │ │ │ ├── .gitignore │ │ │ │ ├── ClientApp │ │ │ │ ├── .editorconfig │ │ │ │ ├── .gitignore │ │ │ │ ├── README.md │ │ │ │ ├── angular.json │ │ │ │ ├── browserslist │ │ │ │ ├── e2e │ │ │ │ │ ├── protractor.conf.js │ │ │ │ │ ├── src │ │ │ │ │ │ ├── app.e2e-spec.ts │ │ │ │ │ │ └── app.po.ts │ │ │ │ │ └── tsconfig.e2e.json │ │ │ │ ├── package-lock.json │ │ │ │ ├── package.json │ │ │ │ ├── src │ │ │ │ │ ├── app │ │ │ │ │ │ ├── app.component.html │ │ │ │ │ │ ├── app.component.ts │ │ │ │ │ │ ├── app.module.ts │ │ │ │ │ │ ├── app.server.module.ts │ │ │ │ │ │ ├── counter │ │ │ │ │ │ │ ├── counter.component.html │ │ │ │ │ │ │ ├── counter.component.spec.ts │ │ │ │ │ │ │ └── counter.component.ts │ │ │ │ │ │ ├── fetch-data │ │ │ │ │ │ │ ├── fetch-data.component.html │ │ │ │ │ │ │ └── fetch-data.component.ts │ │ │ │ │ │ ├── home │ │ │ │ │ │ │ ├── home.component.html │ │ │ │ │ │ │ └── home.component.ts │ │ │ │ │ │ ├── models │ │ │ │ │ │ │ ├── connection-status.ts │ │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ │ └── weather-forecast.ts │ │ │ │ │ │ ├── nav-menu │ │ │ │ │ │ │ ├── nav-menu.component.css │ │ │ │ │ │ │ ├── nav-menu.component.html │ │ │ │ │ │ │ └── nav-menu.component.ts │ │ │ │ │ │ └── services │ │ │ │ │ │ │ └── weather-forecast-hub.service.ts │ │ │ │ │ ├── assets │ │ │ │ │ │ └── .gitkeep │ │ │ │ │ ├── environments │ │ │ │ │ │ ├── environment.prod.ts │ │ │ │ │ │ └── environment.ts │ │ │ │ │ ├── index.html │ │ │ │ │ ├── karma.conf.js │ │ │ │ │ ├── main.ts │ │ │ │ │ ├── polyfills.ts │ │ │ │ │ ├── styles.css │ │ │ │ │ ├── test.ts │ │ │ │ │ ├── tsconfig.app.json │ │ │ │ │ ├── tsconfig.server.json │ │ │ │ │ ├── tsconfig.spec.json │ │ │ │ │ └── tslint.json │ │ │ │ ├── tsconfig.json │ │ │ │ └── tslint.json │ │ │ │ ├── Controllers │ │ │ │ └── WeatherForecastController.cs │ │ │ │ ├── Hubs │ │ │ │ └── WeatherForecastHub.cs │ │ │ │ ├── Pages │ │ │ │ ├── Error.cshtml │ │ │ │ ├── Error.cshtml.cs │ │ │ │ └── _ViewImports.cshtml │ │ │ │ ├── Program.cs │ │ │ │ ├── ServiceFromSignalR.csproj │ │ │ │ ├── Startup.cs │ │ │ │ ├── WeatherForecast.cs │ │ │ │ ├── appsettings.Development.json │ │ │ │ ├── appsettings.json │ │ │ │ └── wwwroot │ │ │ │ └── favicon.ico │ │ ├── WithCustomHttpClient.sln │ │ ├── WithCustomHttpClient │ │ │ ├── Generator │ │ │ │ ├── Generator.csproj │ │ │ │ └── GeneratorMain.cs │ │ │ └── Service │ │ │ │ ├── .gitignore │ │ │ │ ├── ClientApp │ │ │ │ ├── .editorconfig │ │ │ │ ├── .gitignore │ │ │ │ ├── README.md │ │ │ │ ├── angular.json │ │ │ │ ├── browserslist │ │ │ │ ├── e2e │ │ │ │ │ ├── protractor.conf.js │ │ │ │ │ ├── src │ │ │ │ │ │ ├── app.e2e-spec.ts │ │ │ │ │ │ └── app.po.ts │ │ │ │ │ └── tsconfig.e2e.json │ │ │ │ ├── package-lock.json │ │ │ │ ├── package.json │ │ │ │ ├── src │ │ │ │ │ ├── app │ │ │ │ │ │ ├── app.component.html │ │ │ │ │ │ ├── app.component.ts │ │ │ │ │ │ ├── app.module.ts │ │ │ │ │ │ ├── app.server.module.ts │ │ │ │ │ │ ├── base │ │ │ │ │ │ │ └── custom-http-client.ts │ │ │ │ │ │ ├── counter │ │ │ │ │ │ │ ├── counter.component.html │ │ │ │ │ │ │ ├── counter.component.spec.ts │ │ │ │ │ │ │ └── counter.component.ts │ │ │ │ │ │ ├── fetch-data │ │ │ │ │ │ │ ├── fetch-data.component.html │ │ │ │ │ │ │ └── fetch-data.component.ts │ │ │ │ │ │ ├── home │ │ │ │ │ │ │ ├── home.component.html │ │ │ │ │ │ │ └── home.component.ts │ │ │ │ │ │ ├── models │ │ │ │ │ │ │ └── weather-forecast.ts │ │ │ │ │ │ ├── nav-menu │ │ │ │ │ │ │ ├── nav-menu.component.css │ │ │ │ │ │ │ ├── nav-menu.component.html │ │ │ │ │ │ │ └── nav-menu.component.ts │ │ │ │ │ │ └── services │ │ │ │ │ │ │ └── weather-forecast.service.ts │ │ │ │ │ ├── assets │ │ │ │ │ │ └── .gitkeep │ │ │ │ │ ├── environments │ │ │ │ │ │ ├── environment.prod.ts │ │ │ │ │ │ └── environment.ts │ │ │ │ │ ├── index.html │ │ │ │ │ ├── karma.conf.js │ │ │ │ │ ├── main.ts │ │ │ │ │ ├── polyfills.ts │ │ │ │ │ ├── styles.css │ │ │ │ │ ├── test.ts │ │ │ │ │ ├── tsconfig.app.json │ │ │ │ │ ├── tsconfig.server.json │ │ │ │ │ ├── tsconfig.spec.json │ │ │ │ │ └── tslint.json │ │ │ │ ├── tsconfig.json │ │ │ │ └── tslint.json │ │ │ │ ├── Controllers │ │ │ │ └── WeatherForecastController.cs │ │ │ │ ├── Pages │ │ │ │ ├── Error.cshtml │ │ │ │ ├── Error.cshtml.cs │ │ │ │ └── _ViewImports.cshtml │ │ │ │ ├── Program.cs │ │ │ │ ├── Startup.cs │ │ │ │ ├── WeatherForecast.cs │ │ │ │ ├── WithCustomHttpClient.csproj │ │ │ │ ├── appsettings.Development.json │ │ │ │ ├── appsettings.json │ │ │ │ └── wwwroot │ │ │ │ └── favicon.ico │ │ └── build.cmd │ └── build.cmd ├── AspDotNet │ ├── AspDotNet From Attributes.sln │ ├── AspDotNet.sln │ ├── WebApi.Attributes.Core │ │ ├── Controllers │ │ │ └── ValuesController.cs │ │ ├── KY.Generator.Examples.AspDotNet.WebApi.Attributes.Core.csproj │ │ ├── Models │ │ │ └── Value.cs │ │ ├── Program.cs │ │ ├── README.md │ │ ├── Startup.cs │ │ ├── appsettings.Development.json │ │ └── appsettings.json │ ├── WebApi.Attributes │ │ ├── App_Start │ │ │ └── WebApiConfig.cs │ │ ├── Controllers │ │ │ └── ValuesController.cs │ │ ├── Global.asax │ │ ├── Global.asax.cs │ │ ├── KY.Generator.Examples.AspDotNet.WebApi.Attributes.csproj │ │ ├── Models │ │ │ └── Value.cs │ │ ├── Properties │ │ │ └── AssemblyInfo.cs │ │ ├── README.md │ │ ├── Web.Debug.config │ │ ├── Web.Release.config │ │ ├── Web.config │ │ └── packages.config │ ├── WebApi.Core │ │ ├── Controllers │ │ │ └── ValuesController.cs │ │ ├── KY.Generator.Examples.AspDotNet.WebApi.Core.csproj │ │ ├── Models │ │ │ └── Value.cs │ │ ├── Program.cs │ │ ├── Properties │ │ │ └── launchSettings.json │ │ ├── README.md │ │ ├── Startup.cs │ │ ├── appsettings.Development.json │ │ ├── appsettings.json │ │ └── generator.json │ └── WebApi │ │ ├── App_Start │ │ └── WebApiConfig.cs │ │ ├── Controllers │ │ └── ValuesController.cs │ │ ├── Global.asax │ │ ├── Global.asax.cs │ │ ├── KY.Generator.Examples.AspDotNet.WebApi.csproj │ │ ├── Models │ │ └── Value.cs │ │ ├── Properties │ │ └── AssemblyInfo.cs │ │ ├── README.md │ │ ├── Web.Debug.config │ │ ├── Web.Release.config │ │ ├── Web.config │ │ ├── generator.json │ │ └── packages.config ├── Customization │ ├── CustomModule.Console │ │ ├── CustomModule.Console.csproj │ │ ├── Generator.cs │ │ ├── Output │ │ │ └── Program.cs │ │ └── Program.cs │ ├── CustomModule.sln │ └── CustomModule │ │ ├── Commands │ │ ├── WriteCommand.cs │ │ └── WriteCommandParameters.cs │ │ ├── CustomModule.csproj │ │ ├── Module.cs │ │ ├── Syntax │ │ └── WriteFluentSyntaxExtension.cs │ │ └── Writers │ │ └── Writer.cs ├── Json │ ├── JsonWithReader.sln │ ├── JsonWithReader │ │ ├── Generator.cs │ │ ├── JsonWithReader.csproj │ │ ├── Output │ │ │ ├── Complex.cs │ │ │ ├── ObjectArrayProperty.cs │ │ │ ├── ObjectProperty.cs │ │ │ ├── Simple.cs │ │ │ └── simple.ts │ │ ├── Program.cs │ │ └── Source │ │ │ ├── complex.json │ │ │ └── simple.json │ └── build.cmd ├── Reflection │ ├── README.md │ ├── ReflectionFromAttributes.sln │ ├── ReflectionFromAttributes │ │ ├── Output │ │ │ └── type-to-read.ts │ │ ├── ReflectionFromAttributes.csproj │ │ └── TypeToRead.cs │ ├── ReflectionFromConstant.sln │ ├── ReflectionFromConstant │ │ ├── Class1.cs │ │ ├── Output │ │ │ └── class-1.ts │ │ └── ReflectionFromConstant.csproj │ ├── ReflectionFromCore.sln │ ├── ReflectionFromCore │ │ ├── Output │ │ │ └── type-to-read.ts │ │ ├── Program.cs │ │ ├── ReflectionFromCore.csproj │ │ └── TypeToRead.cs │ ├── ReflectionFromExecutable.sln │ ├── ReflectionFromExecutable │ │ ├── Output │ │ │ └── type-to-read.ts │ │ ├── Program.cs │ │ ├── ReflectionFromExecutable.csproj │ │ └── TypeToRead.cs │ ├── ReflectionFromIndex.sln │ ├── ReflectionFromIndex │ │ ├── AnotherType.cs │ │ ├── IgnoredType.cs │ │ ├── Index.cs │ │ ├── Output │ │ │ ├── another-type.ts │ │ │ └── type-to-read.ts │ │ ├── ReflectionFromIndex.csproj │ │ └── TypeToRead.cs │ ├── ReflectionFromMultipleAssemblies.sln │ ├── ReflectionFromMultipleAssemblies │ │ ├── MainAssembly │ │ │ ├── MainAssembly.csproj │ │ │ ├── Output │ │ │ │ ├── second-type.ts │ │ │ │ └── type-to-read.ts │ │ │ └── TypeToRead.cs │ │ └── SecondAssembly │ │ │ ├── SecondAssembly.csproj │ │ │ └── SecondType.cs │ ├── ReflectionFromNet5.sln │ ├── ReflectionFromNet5 │ │ ├── Output │ │ │ └── type-to-read.ts │ │ ├── ReflectionFromNet5.csproj │ │ └── TypeToRead.cs │ ├── ReflectionFromStandard.sln │ ├── ReflectionFromStandard │ │ ├── Output │ │ │ └── type-to-read.ts │ │ ├── ReflectionFromStandard.csproj │ │ └── TypeToRead.cs │ ├── ReflectionIgnoreAttribute.sln │ ├── ReflectionIgnoreAttribute │ │ ├── EnumToIgnore.cs │ │ ├── GenerateOnlySubTypes.cs │ │ ├── Output │ │ │ ├── generate-only-sub-types-sub-type.ts │ │ │ └── type-to-read.ts │ │ ├── ReflectionIgnoreAttribute.csproj │ │ ├── TypeToIgnore.cs │ │ └── TypeToRead.cs │ ├── ReflectionReturnTypeAttribute.sln │ ├── ReflectionReturnTypeAttribute │ │ ├── OtherSubType.cs │ │ ├── Output │ │ │ ├── other-sub-type.ts │ │ │ ├── sub-type.ts │ │ │ └── types.ts │ │ ├── ReflectionReturnTypeAttribute.csproj │ │ ├── SubType.cs │ │ └── Types.cs │ ├── ReflectionX86.sln │ ├── ReflectionX86 │ │ ├── ReflectionX86.csproj │ │ ├── TypeToRead.cs │ │ └── type-to-read.ts │ └── build.cmd ├── Sqlite │ ├── FromDatabase.sln │ ├── FromDatabase │ │ ├── FromDatabase.csproj │ │ ├── Generator.cs │ │ ├── Output │ │ │ └── Person.cs │ │ ├── Program.cs │ │ └── test.db │ ├── ToDatabase.sln │ ├── ToDatabase │ │ ├── Person.cs │ │ ├── PersonRepository.cs │ │ ├── Program.cs │ │ └── ToDatabase.csproj │ └── build.cmd ├── Tsql │ ├── Tsql.sln │ └── Tsql │ │ ├── Generator.cs │ │ ├── Program.cs │ │ └── Tsql.csproj └── build.cmd ├── Fluent ├── Commands │ ├── FluentCommand.cs │ └── FluentCommandParameters.cs ├── FluentModule.cs ├── GeneratorFluentMain.cs ├── Helpers │ ├── DependencyResolverReference.cs │ └── TypeHelper.cs ├── KY.Generator.Fluent.csproj ├── KY.Generator.Fluent.csproj.DotSettings ├── README.md ├── Syntax │ ├── FileNameFluentSyntax.cs │ ├── FluentSyntax.cs │ ├── FormattingFluentSyntax.cs │ ├── IExecutableSyntax.cs │ ├── IFileNameFluentSyntax.cs │ ├── IFluentInternalSyntax.cs │ ├── IFluentSyntax.cs │ ├── IFormattingFluentSyntax.cs │ ├── IReadFluentSyntax.cs │ ├── IReadFluentSyntaxInternal.cs │ ├── ISetFluentSyntax.cs │ ├── ISetMemberFluentSyntax.cs │ ├── ISetMemberReturnTypeFluentSyntax.cs │ ├── ISwitchToReadFluentSyntax.cs │ ├── ISwitchToWriteFluentSyntax.cs │ ├── IWriteFluentSyntax.cs │ ├── IWriteFluentSyntaxInternal.cs │ ├── SetFluentMemberSyntax.cs │ └── SetFluentSyntax.cs └── nuget.nuspec ├── Json.Tests ├── ConfigurationTests.cs ├── FullStageTests.cs ├── KY.Generator.Json.Tests.csproj ├── Properties │ ├── Resources.Designer.cs │ └── Resources.resx └── Resources │ ├── Alllowerobject.cs.result │ ├── Allupperobject.cs.result │ ├── Complex.cs.result │ ├── ComplexWithReader.cs.result │ ├── FormatNames.cs.result │ ├── ObjectArrayProperty.cs.result │ ├── ObjectProperty.cs.result │ ├── Simple.cs.result │ ├── SimpleReader.cs.result │ ├── SimpleWithReader.cs.result │ ├── SimpleWithoutReader.cs.result │ ├── complex-with-reader.generator.json │ ├── complex.generator.json │ ├── complex.json │ ├── formatNames.generator.json │ ├── formatNames.json │ ├── simple-with-reader.generator.json │ ├── simple-with-separate-reader.generator.json │ ├── simple.generator.json │ └── simple.json ├── Json ├── Commands │ ├── JsonReadCommand.cs │ ├── JsonReadCommandParameters.cs │ ├── JsonWriteCommand.cs │ └── JsonWriteCommandParameters.cs ├── Configurations │ ├── JsonReadConfiguration.cs │ └── JsonWriteConfiguration.cs ├── Extensions │ └── TypeMappingExtension.cs ├── Fluent │ ├── Extensions │ │ ├── ReadFluentSyntaxExtension.cs │ │ └── WriteFluentSyntaxExtension.cs │ ├── IJsonReadSyntax.cs │ ├── IJsonWriteModelOrReaderSyntax.cs │ ├── IJsonWriteModelSyntax.cs │ ├── IJsonWriteSyntax.cs │ ├── JsonReadSyntax.cs │ └── JsonWriteSyntax.cs ├── JsonModule.cs ├── KY.Generator.Json.csproj ├── KY.Generator.Json.csproj.DotSettings ├── Language │ └── JsonLanguage.cs ├── Readers │ └── JsonReader.cs ├── Transfers │ └── JsonModelTransferObject.cs └── Writers │ ├── JsonWriter.cs │ └── ObjectWriter.cs ├── KY.Generator.sln ├── KY.Generator.sln.DotSettings ├── LICENSE ├── Main.Legacy ├── App.config ├── KY.Generator.Main.Legacy.csproj ├── Program.cs └── Properties │ └── AssemblyInfo.cs ├── Main ├── KY.Generator.csproj ├── Program.cs ├── nuget.nuspec └── nuget.targets ├── OData.Tests ├── FullStageTests.cs ├── KY.Generator.OData.Tests.csproj ├── Properties │ ├── Resources.Designer.cs │ └── Resources.resx └── Resources │ ├── OData.xml │ ├── address-service.ts.result │ ├── address.ts.result │ ├── odata.generator.json │ ├── u-se-r-service.ts.result │ └── user.ts.result ├── OData ├── Configurations │ ├── ODataReadConfiguration.cs │ ├── ODataWriteControllerConfiguration.cs │ ├── ODataWriteControllerMethodAttributeConfiguration.cs │ └── ODataWriteControllerMethodConfiguration.cs ├── Extensions │ └── TypeMappingExtension.cs ├── KY.Generator.OData.csproj ├── KY.Generator.OData.csproj.DotSettings ├── Language │ └── ODataLanguage.cs ├── ODataModule.cs ├── Readers │ └── ODataReader.cs └── Transfers │ └── ODataResultTransferObject.cs ├── OpenApi ├── Configurations │ └── OpenApiReadConfiguration.cs ├── DataAccess │ ├── OpenApiFileReader.cs │ └── OpenApiUrlReader.cs ├── Extensions │ └── OperationTypeExtension.cs ├── KY.Generator.OpenApi.csproj ├── Languages │ ├── OpenApiLanguage.cs │ └── TypeMapping.cs ├── OpenApiModule.cs └── Readers │ ├── OpenApiDocumentReader.cs │ └── OpenApiReader.cs ├── README.md ├── Reflection.Tests ├── Data │ ├── BaseClassAndOneInterfaceType.cs │ ├── BaseClassAndTwoInterfacesType.cs │ ├── BasedOnCustomGenericString.cs │ ├── BasedOnCustomGenericSubtype.cs │ ├── BasedOnStringList.cs │ ├── BasedOnSubtypeList.cs │ ├── CustomGeneric.cs │ ├── CustomGenericStringProperty.cs │ ├── CustomGenericSubtypeProperty.cs │ ├── CustomTypeInArray.cs │ ├── CustomTypeInList.cs │ ├── ExportedPrimitiveType.cs │ ├── ExportedType.cs │ ├── GenericType.cs │ ├── IFirst.cs │ ├── IInheritFirst.cs │ ├── ISecond.cs │ ├── IThird.cs │ ├── InheritInterfaceType.cs │ ├── InnerCustomType.cs │ ├── OneField.cs │ ├── OneInterfaceType.cs │ ├── OneProperty.cs │ ├── OnePropertyWithCustomType.cs │ ├── RecursiveType.cs │ ├── TwoInterfacesType.cs │ └── Types.cs ├── InterfaceTest.cs ├── KY.Generator.Reflection.Tests.csproj ├── KY.Generator.Reflection.Tests.csproj.DotSettings ├── Properties │ ├── Resources.Designer.cs │ └── Resources.resx ├── Resources │ └── reflection.generator.json └── Results │ ├── base-class-and-one-interface-type.ts.result │ ├── base-class-and-two-interfaces-type.ts.result │ ├── exported-primitive-type.ts.result │ ├── exported-type.ts.result │ ├── first.interface.ts.result │ ├── generic-type.ts.result │ ├── inherit-first.interface.ts.result │ ├── inherit-interface-type.ts.result │ ├── inner-custom-type.ts.result │ ├── one-interface-type.ts.result │ ├── second.interface.ts.result │ ├── subtype.result │ ├── third.interface.ts.result │ ├── two-interfaces-type.ts.result │ └── types.result ├── Reflection ├── Commands │ ├── AnnotationCommand.cs │ ├── AnnotationCommandParameters.cs │ ├── ReflectionCommand.cs │ ├── ReflectionCommandParameters.cs │ ├── ReflectionReadCommand.cs │ ├── ReflectionReadCommandParameters.cs │ ├── ReflectionWriteCommand.cs │ └── ReflectionWriteCommandParameters.cs ├── Configurations │ └── ReflectionReadConfiguration.cs ├── Extensions │ ├── AttributeListExtension.cs │ └── TypeMappingExtension.cs ├── Fluent │ ├── Extensions │ │ ├── ReadFluentSyntaxExtension.cs │ │ └── WriteFluentSyntaxExtension.cs │ ├── IReflectionFromTypeSyntax.cs │ ├── IReflectionReadSyntax.cs │ ├── IReflectionWriteSyntax.cs │ ├── ReflectionFromTypeSyntax.cs │ ├── ReflectionReadSyntax.cs │ └── ReflectionWriteSyntax.cs ├── Helpers │ └── TypeHelper.cs ├── KY.Generator.Reflection.csproj ├── KY.Generator.Reflection.csproj.DotSettings ├── Language │ └── ReflectionLanguage.cs ├── Readers │ ├── ReflectionModelReader.cs │ └── ReflectionReader.cs ├── ReflectionModule.cs └── Writers │ └── ReflectionWriter.cs ├── Sqlite.Tests ├── KY.Generator.Sqlite.Tests.csproj └── SqliteParserTest.cs ├── Sqlite ├── Commands │ ├── SqliteReadDatabaseCommand.cs │ ├── SqliteReadDatabaseCommandParameters.cs │ ├── SqliteWriteRepositoryCommand.cs │ └── SqliteWriteRepositoryCommandParameters.cs ├── Extensions │ └── TypeMappingExtension.cs ├── Fluent │ ├── Extensions │ │ └── ReadFluentSyntaxExtension.cs │ ├── ISqliteFromDatabaseOrReadSyntax.cs │ ├── ISqliteFromDatabaseSyntax.cs │ ├── ISqliteReadSyntax.cs │ ├── SqliteFromDatabaseSyntax.cs │ └── SqliteReadSyntax.cs ├── Helpers │ ├── SqliteAttributeHelper.cs │ └── SqliteType.cs ├── KY.Generator.Sqlite.csproj ├── Language │ └── SqliteLanguage.cs ├── Parsers │ ├── ISqliteStatement.cs │ ├── SqliteCreateTable.cs │ ├── SqliteCreateTableColumn.cs │ └── SqliteParser.cs ├── Readers │ └── SqliteTableReader.cs ├── SqliteModule.cs ├── Transfer │ ├── Readers │ │ └── SqliteModelReader.cs │ ├── SqliteFieldTransferObject.cs │ ├── SqliteModelTransferObject.cs │ └── SqlitePropertyTransferObject.cs └── Writers │ └── SqliteRepositoryWriter.cs ├── Tests ├── AnnotationAsync.sln ├── AnnotationAsync │ ├── AngularAsync.cs │ ├── AnnotationAsync.csproj │ ├── AssemblyInfo.cs │ ├── AsyncTypes.cs │ ├── NotAsyncType.cs │ ├── Output │ │ ├── angular-async.ts │ │ ├── async-types.ts │ │ ├── not-async-type.ts │ │ └── sub-type.ts │ └── Program.cs ├── AnnotationAsyncAssembly │ ├── AnnotationAsyncAssembly.csproj │ ├── AssemblyInfo.cs │ ├── Class1.cs │ ├── Class2.cs │ └── Output │ │ ├── class-1.ts │ │ └── class-2.ts ├── AnnotationInNestedClass.sln ├── AnnotationInNestedClass │ ├── AnnotationInNestedClass.csproj │ ├── AssemblyInfo.cs │ ├── Class1.cs │ └── Output │ │ └── class-2.ts ├── AnnotationsWithMultipleOutputs.sln ├── AnnotationsWithMultipleOutputs │ ├── AnnotationsWithMultipleOutputs.csproj │ ├── FirstType.cs │ ├── Output │ │ ├── First │ │ │ ├── first-type.ts │ │ │ ├── index.ts │ │ │ └── sub-type.ts │ │ ├── Second │ │ │ ├── index.ts │ │ │ ├── second-type.ts │ │ │ └── sub-type.ts │ │ └── Third │ │ │ └── third-type.ts │ ├── SecondType.cs │ ├── SubType.cs │ └── ThirdType.cs ├── Caseing.Generator │ ├── Caseing.Generator.csproj │ ├── GeneratorMain.cs │ └── Output │ │ ├── case-me.ts │ │ ├── index.ts │ │ ├── keep-my-case.ts │ │ └── mixed-caseing.ts ├── Caseing.sln ├── Caseing │ ├── CaseMe.cs │ ├── Caseing.csproj │ ├── KeepMyCase.cs │ └── MixedCaseing.cs ├── Derive.sln ├── Derive │ ├── AssemblyInfo.cs │ ├── Derive.csproj │ ├── DeriveFromInterface.cs │ ├── DerivedFromAbstractClass.cs │ ├── DerivedFromClass.cs │ └── Output │ │ ├── abstract-type.ts │ │ ├── base-class.ts │ │ ├── base-interface.interface.ts │ │ ├── derive-from-interface-prefer-class.ts │ │ ├── derive-from-interface-prefer-interface.ts │ │ ├── derived-from-abstract-class-prefer-class.ts │ │ ├── derived-from-abstract-class-prefer-interface.ts │ │ ├── derived-from-class-prefer-class.ts │ │ └── derived-from-class-prefer-interface.ts ├── Fluent.sln ├── Fluent │ ├── Fluent.Generator │ │ ├── Fluent.Generator.csproj │ │ ├── GeneratorMain.cs │ │ └── Output │ │ │ └── Models │ │ │ ├── edge-case-1-sub-type-generic.ts │ │ │ ├── edge-case-1-sub-type.ts │ │ │ ├── edge-case-1.ts │ │ │ ├── edge-case-2-sub-type-generic.ts │ │ │ ├── edge-case-2-sub-type.ts │ │ │ ├── edge-case-2.ts │ │ │ ├── generic-interface-with-non-generic-base.interface.ts │ │ │ ├── generic-interface.interface.ts │ │ │ ├── interface-generic.interface.ts │ │ │ ├── interface.interface.ts │ │ │ ├── self-referencing-type.ts │ │ │ ├── sub-type.ts │ │ │ ├── type-with-generic-and-not-generic-base-interface.ts │ │ │ ├── type-with-generic-and-not-generic-interface.ts │ │ │ ├── type-with-generic-ignored-base.ts │ │ │ ├── type-with-generic-interface.ts │ │ │ ├── type-with-ignore-generic-interface.ts │ │ │ ├── type-with-ignore-interface.ts │ │ │ ├── type-with-ignored-base.ts │ │ │ ├── type-with-interface.ts │ │ │ └── types.ts │ └── Fluent │ │ ├── EdgeCase1.cs │ │ ├── EdgeCase2.cs │ │ ├── Fluent.csproj │ │ ├── IGenericInterface.cs │ │ ├── IGenericInterfaceWithNonGenericBase.cs │ │ ├── IIgnoreMe.cs │ │ ├── IInterface.cs │ │ ├── IgnoreMe.cs │ │ ├── SelfReferencingType.cs │ │ ├── SubType.cs │ │ ├── TypeWithGenericAndNotGenericBaseInterface.cs │ │ ├── TypeWithGenericAndNotGenericInterface.cs │ │ ├── TypeWithGenericIgnoredBase.cs │ │ ├── TypeWithGenericInterface.cs │ │ ├── TypeWithIgnoreGenericInterface.cs │ │ ├── TypeWithIgnoreInterface.cs │ │ ├── TypeWithIgnoredBase.cs │ │ ├── TypeWithInterface.cs │ │ └── Types.cs ├── Formatting.sln ├── Formatting │ ├── Formatting │ │ ├── Formatting.csproj │ │ ├── IInterface.cs │ │ ├── Interface.cs │ │ ├── MyClass.cs │ │ ├── TabTest.cs │ │ └── TwoWhitespaceTest.cs │ └── Generator │ │ ├── Generator.csproj │ │ ├── GeneratorMain.cs │ │ └── Output │ │ ├── WithPrefix │ │ ├── c-my-class-with-i-interface.ts │ │ ├── c-my-class-with-interface.ts │ │ └── interface.interface.ts │ │ ├── WithoutPrefix │ │ ├── interface.interface.ts │ │ ├── interface.ts │ │ ├── my-class-with-i-interface.ts │ │ └── my-class-with-interface.ts │ │ ├── tab-test.ts │ │ └── two-whitespace-test.ts ├── Generator │ ├── FullStageTests.cs │ ├── KY.Generator.Tests.csproj │ ├── Models │ │ ├── Read1Configuration.cs │ │ ├── Read2Configuration.cs │ │ ├── Reader1.cs │ │ ├── Reader2.cs │ │ ├── Write1Configuration.cs │ │ ├── Write2Configuration.cs │ │ ├── Writer1.cs │ │ └── Writer2.cs │ ├── Properties │ │ ├── Resources.Designer.cs │ │ └── Resources.resx │ └── Resources │ │ ├── DataContext.result │ │ ├── User.cs.result │ │ ├── UserController.cs.result │ │ ├── UserRepository.cs.result │ │ ├── angular-service-from-asp.json │ │ ├── empty-configuration-array.json │ │ ├── empty-configuration.json │ │ ├── empty-generate.json │ │ ├── full-project.generator.json │ │ ├── load.json │ │ ├── old-config.json │ │ ├── old-config.xml │ │ ├── one-generate-in-array-array.json │ │ ├── one-generate-in-array.json │ │ ├── one-generate.json │ │ ├── one-read-one-generate-twice.json │ │ ├── one-read-one-generate.json │ │ ├── two-generates-in-array-array.json │ │ └── two-reads-one-generate.json ├── Net5.sln ├── Net5 │ ├── AssemblyInfo.cs │ ├── Net5.csproj │ ├── Net5.csproj.DotSettings │ ├── Output │ │ ├── generic-sub-type.ts │ │ ├── sub-type.ts │ │ └── types.ts │ └── Types.cs ├── Net6.sln ├── Net6 │ ├── AssemblyInfo.cs │ ├── Net6.csproj │ ├── Output │ │ ├── generic-sub-type.ts │ │ ├── sub-type.ts │ │ └── types.ts │ └── Types.cs ├── Net7.sln ├── Net7 │ ├── AssemblyInfo.cs │ ├── Net7.csproj │ ├── Output │ │ ├── generic-sub-type.ts │ │ ├── sub-type.ts │ │ └── types.ts │ └── Types.cs ├── Net8.sln ├── Net8 │ ├── AssemblyInfo.cs │ ├── Net8.csproj │ ├── Output │ │ ├── generic-sub-type.ts │ │ ├── sub-type.ts │ │ └── types.ts │ └── Types.cs ├── Net9.sln ├── Net9 │ ├── AssemblyInfo.cs │ ├── Net9.csproj │ ├── Output │ │ ├── generic-sub-type.ts │ │ ├── sub-type.ts │ │ └── types.ts │ └── Types.cs ├── ReflectionLoadFromNugetPackageNet5.sln ├── ReflectionLoadFromNugetPackageNet5 │ ├── AssemblyInfo.cs │ ├── Class1.cs │ ├── Output │ │ └── class-1.ts │ └── ReflectionLoadFromNugetPackageNet5.csproj ├── SignalR.sln ├── SignalR │ ├── .gitignore │ ├── AssemblyInfo.cs │ ├── ClientApp │ │ ├── .browserslistrc │ │ ├── .editorconfig │ │ ├── .gitignore │ │ ├── README.md │ │ ├── angular.json │ │ ├── aspnetcore-https.js │ │ ├── karma.conf.js │ │ ├── package-lock.json │ │ ├── package.json │ │ ├── proxy.conf.js │ │ ├── src │ │ │ ├── app │ │ │ │ ├── app.component.html │ │ │ │ ├── app.component.ts │ │ │ │ ├── app.module.ts │ │ │ │ ├── app.server.module.ts │ │ │ │ ├── counter │ │ │ │ │ ├── counter.component.html │ │ │ │ │ ├── counter.component.spec.ts │ │ │ │ │ └── counter.component.ts │ │ │ │ ├── fetch-data │ │ │ │ │ ├── fetch-data.component.html │ │ │ │ │ └── fetch-data.component.ts │ │ │ │ ├── home │ │ │ │ │ ├── home.component.html │ │ │ │ │ └── home.component.ts │ │ │ │ ├── models │ │ │ │ │ ├── connection-status.ts │ │ │ │ │ └── weather-forecast.ts │ │ │ │ ├── multiple │ │ │ │ │ ├── models-1 │ │ │ │ │ │ └── connection-status.ts │ │ │ │ │ ├── models-2 │ │ │ │ │ │ └── connection-status.ts │ │ │ │ │ ├── services-1 │ │ │ │ │ │ └── multiple-output-hub.service.ts │ │ │ │ │ └── services-2 │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── multiple-output-hub.service.ts │ │ │ │ ├── nav-menu │ │ │ │ │ ├── nav-menu.component.css │ │ │ │ │ ├── nav-menu.component.html │ │ │ │ │ └── nav-menu.component.ts │ │ │ │ └── services │ │ │ │ │ └── weather-forecast-hub.service.ts │ │ │ ├── assets │ │ │ │ └── .gitkeep │ │ │ ├── environments │ │ │ │ ├── environment.prod.ts │ │ │ │ └── environment.ts │ │ │ ├── index.html │ │ │ ├── main.ts │ │ │ ├── polyfills.ts │ │ │ ├── styles.css │ │ │ └── test.ts │ │ ├── tsconfig.app.json │ │ ├── tsconfig.json │ │ └── tsconfig.spec.json │ ├── Controllers │ │ └── WeatherForecastController.cs │ ├── Hubs │ │ ├── MultipleOutputHub.cs │ │ └── WeatherForecastHub.cs │ ├── Models │ │ └── WeatherForecast.cs │ ├── Pages │ │ ├── Error.cshtml │ │ ├── Error.cshtml.cs │ │ └── _ViewImports.cshtml │ ├── Program.cs │ ├── Services │ │ └── WeatherForecastService.cs │ ├── SignalR.csproj │ ├── appsettings.Development.json │ ├── appsettings.json │ └── wwwroot │ │ └── favicon.ico ├── Sqlite.sln ├── Sqlite │ ├── AssemblyInfo.cs │ ├── Models │ │ ├── Complex.cs │ │ ├── Simple.cs │ │ ├── SimpleWithAutoincrementPrimary.cs │ │ └── SimpleWithPrimary.cs │ ├── Output │ │ ├── ComplexRepository.cs │ │ ├── SimpleRepository.cs │ │ ├── SimpleWithAutoincrementPrimaryRepository.cs │ │ └── SimpleWithPrimaryRepository.cs │ ├── Program.cs │ └── Sqlite.csproj ├── UrlVersionedWebApiController.sln ├── UrlVersionedWebApiController │ ├── .gitignore │ ├── AssemblyInfo.cs │ ├── ClientApp │ │ ├── .editorconfig │ │ ├── .gitignore │ │ ├── README.md │ │ ├── angular.json │ │ ├── browserslist │ │ ├── e2e │ │ │ ├── protractor.conf.js │ │ │ ├── src │ │ │ │ ├── app.e2e-spec.ts │ │ │ │ └── app.po.ts │ │ │ └── tsconfig.e2e.json │ │ ├── package-lock.json │ │ ├── package.json │ │ ├── src │ │ │ ├── app │ │ │ │ ├── app.component.html │ │ │ │ ├── app.component.ts │ │ │ │ ├── app.module.ts │ │ │ │ ├── app.server.module.ts │ │ │ │ ├── counter │ │ │ │ │ ├── counter.component.html │ │ │ │ │ ├── counter.component.spec.ts │ │ │ │ │ └── counter.component.ts │ │ │ │ ├── fetch-data │ │ │ │ │ ├── fetch-data.component.html │ │ │ │ │ └── fetch-data.component.ts │ │ │ │ ├── home │ │ │ │ │ ├── home.component.html │ │ │ │ │ └── home.component.ts │ │ │ │ ├── models │ │ │ │ │ └── weather-forecast.ts │ │ │ │ ├── nav-menu │ │ │ │ │ ├── nav-menu.component.css │ │ │ │ │ ├── nav-menu.component.html │ │ │ │ │ └── nav-menu.component.ts │ │ │ │ └── services │ │ │ │ │ └── weather-forecast.service.ts │ │ │ ├── assets │ │ │ │ └── .gitkeep │ │ │ ├── environments │ │ │ │ ├── environment.prod.ts │ │ │ │ └── environment.ts │ │ │ ├── index.html │ │ │ ├── karma.conf.js │ │ │ ├── main.ts │ │ │ ├── polyfills.ts │ │ │ ├── styles.css │ │ │ ├── test.ts │ │ │ ├── tsconfig.app.json │ │ │ ├── tsconfig.server.json │ │ │ ├── tsconfig.spec.json │ │ │ └── tslint.json │ │ ├── tsconfig.json │ │ └── tslint.json │ ├── Controllers │ │ └── WeatherForecastController.cs │ ├── Pages │ │ ├── Error.cshtml │ │ ├── Error.cshtml.cs │ │ └── _ViewImports.cshtml │ ├── Program.cs │ ├── Startup.cs │ ├── UrlVersionedWebApiController.csproj │ ├── WeatherForecast.cs │ ├── appsettings.Development.json │ ├── appsettings.json │ └── wwwroot │ │ └── favicon.ico ├── WebApiController.sln ├── WebApiController │ ├── .gitignore │ ├── AssemblyInfo.cs │ ├── ClientApp │ │ ├── .editorconfig │ │ ├── .gitignore │ │ ├── README.md │ │ ├── angular.json │ │ ├── browserslist │ │ ├── e2e │ │ │ ├── protractor.conf.js │ │ │ ├── src │ │ │ │ ├── app.e2e-spec.ts │ │ │ │ └── app.po.ts │ │ │ └── tsconfig.e2e.json │ │ ├── package-lock.json │ │ ├── package.json │ │ ├── proxy.conf.json │ │ ├── src │ │ │ ├── app │ │ │ │ ├── app.component.html │ │ │ │ ├── app.component.ts │ │ │ │ ├── app.module.ts │ │ │ │ ├── app.server.module.ts │ │ │ │ ├── convert-to-interface │ │ │ │ │ ├── models │ │ │ │ │ │ ├── convert-me-optional.ts │ │ │ │ │ │ ├── convert-me.ts │ │ │ │ │ │ └── index.ts │ │ │ │ │ └── services │ │ │ │ │ │ ├── convert-to-interface-optional.service.ts │ │ │ │ │ │ ├── convert-to-interface.service.ts │ │ │ │ │ │ └── index.ts │ │ │ │ ├── counter │ │ │ │ │ ├── counter.component.html │ │ │ │ │ ├── counter.component.spec.ts │ │ │ │ │ └── counter.component.ts │ │ │ │ ├── date │ │ │ │ │ ├── date.component.css │ │ │ │ │ ├── date.component.html │ │ │ │ │ ├── date.component.ts │ │ │ │ │ ├── models │ │ │ │ │ │ ├── date-array-wrapper.ts │ │ │ │ │ │ ├── date-model-array-wrapper.ts │ │ │ │ │ │ ├── date-model-wrapper-list-wrapper.ts │ │ │ │ │ │ ├── date-model-wrapper-with-date.ts │ │ │ │ │ │ ├── date-model-wrapper.ts │ │ │ │ │ │ ├── date-model.ts │ │ │ │ │ │ ├── generic-result.ts │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── optional-properties-model.ts │ │ │ │ │ └── services │ │ │ │ │ │ ├── date.service.ts │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── optional-property.service.ts │ │ │ │ ├── derived │ │ │ │ │ └── services │ │ │ │ │ │ └── derived.service.ts │ │ │ │ ├── duplicate-name │ │ │ │ │ └── services │ │ │ │ │ │ └── duplicate-name.service.ts │ │ │ │ ├── edge-cases │ │ │ │ │ ├── components │ │ │ │ │ │ ├── edge-cases.component.css │ │ │ │ │ │ ├── edge-cases.component.html │ │ │ │ │ │ └── edge-cases.component.ts │ │ │ │ │ ├── models │ │ │ │ │ │ ├── date-model.ts │ │ │ │ │ │ ├── exclusive-generic-complex-result.ts │ │ │ │ │ │ ├── generic-result.ts │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── self-referencing-model.ts │ │ │ │ │ └── services │ │ │ │ │ │ └── edge-cases.service.ts │ │ │ │ ├── fetch-data │ │ │ │ │ ├── fetch-data.component.html │ │ │ │ │ └── fetch-data.component.ts │ │ │ │ ├── fix-casing │ │ │ │ │ ├── fix-casing.component.css │ │ │ │ │ ├── fix-casing.component.html │ │ │ │ │ ├── fix-casing.component.ts │ │ │ │ │ ├── models │ │ │ │ │ │ ├── casing-model.ts │ │ │ │ │ │ ├── casing-with-mapping-model.ts │ │ │ │ │ │ └── index.ts │ │ │ │ │ └── services │ │ │ │ │ │ └── fix-casing.service.ts │ │ │ │ ├── get-complex │ │ │ │ │ ├── models │ │ │ │ │ │ ├── get-complex-model-service.ts │ │ │ │ │ │ ├── get-complex-model.ts │ │ │ │ │ │ └── index.ts │ │ │ │ │ └── services │ │ │ │ │ │ └── get-complex.service.ts │ │ │ │ ├── home │ │ │ │ │ ├── home.component.html │ │ │ │ │ └── home.component.ts │ │ │ │ ├── http-types │ │ │ │ │ └── services │ │ │ │ │ │ └── http-types.service.ts │ │ │ │ ├── invalid-words │ │ │ │ │ └── services │ │ │ │ │ │ └── invalid-words.service.ts │ │ │ │ ├── keep-casing │ │ │ │ │ ├── keep-casing.component.css │ │ │ │ │ ├── keep-casing.component.html │ │ │ │ │ ├── keep-casing.component.ts │ │ │ │ │ ├── models │ │ │ │ │ │ └── keep-casing-model.ts │ │ │ │ │ └── services │ │ │ │ │ │ └── keep-casing.service.ts │ │ │ │ ├── nav-menu │ │ │ │ │ ├── nav-menu.component.css │ │ │ │ │ ├── nav-menu.component.html │ │ │ │ │ └── nav-menu.component.ts │ │ │ │ ├── parameter-on-controller │ │ │ │ │ └── services │ │ │ │ │ │ └── parameter-on.service.ts │ │ │ │ ├── post │ │ │ │ │ ├── models │ │ │ │ │ │ └── post-model.ts │ │ │ │ │ └── services │ │ │ │ │ │ └── post.service.ts │ │ │ │ ├── produces │ │ │ │ │ ├── models │ │ │ │ │ │ └── weather-forecast.ts │ │ │ │ │ └── services │ │ │ │ │ │ └── produces.service.ts │ │ │ │ ├── rename │ │ │ │ │ ├── models │ │ │ │ │ │ ├── data.ts │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── rename-model.ts │ │ │ │ │ └── services │ │ │ │ │ │ └── rename.service.ts │ │ │ │ ├── routed │ │ │ │ │ ├── models │ │ │ │ │ │ └── weather-forecast.ts │ │ │ │ │ └── services │ │ │ │ │ │ └── routed.service.ts │ │ │ │ ├── versioned-api │ │ │ │ │ ├── models │ │ │ │ │ │ └── weather-forecast.ts │ │ │ │ │ ├── services │ │ │ │ │ │ └── versioned-api.service.ts │ │ │ │ │ ├── versioned-api.component.css │ │ │ │ │ ├── versioned-api.component.html │ │ │ │ │ └── versioned-api.component.ts │ │ │ │ └── warnings │ │ │ │ │ ├── models │ │ │ │ │ └── weather-forecast.ts │ │ │ │ │ └── services │ │ │ │ │ └── warning.service.ts │ │ │ ├── environments │ │ │ │ ├── environment.prod.ts │ │ │ │ └── environment.ts │ │ │ ├── index.html │ │ │ ├── karma.conf.js │ │ │ ├── main.ts │ │ │ ├── polyfills.ts │ │ │ ├── styles.css │ │ │ ├── test.ts │ │ │ ├── tsconfig.app.json │ │ │ ├── tsconfig.server.json │ │ │ ├── tsconfig.spec.json │ │ │ └── tslint.json │ │ ├── tsconfig.json │ │ └── tslint.json │ ├── Controllers │ │ ├── ConvertToInterfaceController.cs │ │ ├── DateController.cs │ │ ├── DerivedController.cs │ │ ├── DuplicateNameController.cs │ │ ├── EdgeCasesController.cs │ │ ├── FixCasingController.cs │ │ ├── GetComplexController.cs │ │ ├── HttpTypesController.cs │ │ ├── InvalidWordsController.cs │ │ ├── KeepCasingController.cs │ │ ├── OptionalPropertyController.cs │ │ ├── ParameterOnController.cs │ │ ├── PostController.cs │ │ ├── ProducesController.cs │ │ ├── RenameController.cs │ │ ├── RoutedController.cs │ │ ├── VersionedApiController.cs │ │ └── WarningController.cs │ ├── Models │ │ ├── CaseingModel.cs │ │ ├── CasingWithMappingModel.cs │ │ ├── ConvertMe.cs │ │ ├── ConvertMeOptional.cs │ │ ├── DateModel.cs │ │ ├── DummyData.cs │ │ ├── GenericResult.cs │ │ ├── GetComplexModel.cs │ │ ├── IgnoreMe.cs │ │ ├── KeepCasingModel.cs │ │ ├── OptionalPropertiesModel.cs │ │ ├── PostModel.cs │ │ ├── RenameDto.cs │ │ ├── SelfReferencingModel.cs │ │ └── WeatherForecast.cs │ ├── Pages │ │ ├── Error.cshtml │ │ ├── Error.cshtml.cs │ │ └── _ViewImports.cshtml │ ├── Program.cs │ ├── Services │ │ └── DummyService.cs │ ├── Startup.cs │ ├── WebApiController.csproj │ ├── appsettings.Development.json │ ├── appsettings.json │ └── wwwroot │ │ └── favicon.ico ├── WebApiFluent.Generator │ ├── GeneratorMain.cs │ └── WebApiFluent.Generator.csproj ├── WebApiFluent.sln ├── WebApiFluent │ ├── .gitignore │ ├── ClientApp │ │ ├── .editorconfig │ │ ├── .gitignore │ │ ├── README.md │ │ ├── angular.json │ │ ├── browserslist │ │ ├── e2e │ │ │ ├── protractor.conf.js │ │ │ ├── src │ │ │ │ ├── app.e2e-spec.ts │ │ │ │ └── app.po.ts │ │ │ └── tsconfig.e2e.json │ │ ├── package-lock.json │ │ ├── package.json │ │ ├── src │ │ │ ├── app │ │ │ │ ├── app.component.html │ │ │ │ ├── app.component.ts │ │ │ │ ├── app.module.ts │ │ │ │ ├── app.server.module.ts │ │ │ │ ├── counter │ │ │ │ │ ├── counter.component.html │ │ │ │ │ ├── counter.component.spec.ts │ │ │ │ │ └── counter.component.ts │ │ │ │ ├── fetch-data │ │ │ │ │ ├── fetch-data.component.html │ │ │ │ │ └── fetch-data.component.ts │ │ │ │ ├── home │ │ │ │ │ ├── home.component.html │ │ │ │ │ └── home.component.ts │ │ │ │ ├── models │ │ │ │ │ └── weather-forecast.ts │ │ │ │ ├── nav-menu │ │ │ │ │ ├── nav-menu.component.css │ │ │ │ │ ├── nav-menu.component.html │ │ │ │ │ └── nav-menu.component.ts │ │ │ │ └── services │ │ │ │ │ └── weather-forecast.service.ts │ │ │ ├── assets │ │ │ │ └── .gitkeep │ │ │ ├── environments │ │ │ │ ├── environment.prod.ts │ │ │ │ └── environment.ts │ │ │ ├── index.html │ │ │ ├── karma.conf.js │ │ │ ├── main.ts │ │ │ ├── polyfills.ts │ │ │ ├── styles.css │ │ │ ├── test.ts │ │ │ ├── tsconfig.app.json │ │ │ ├── tsconfig.server.json │ │ │ ├── tsconfig.spec.json │ │ │ └── tslint.json │ │ ├── tsconfig.json │ │ └── tslint.json │ ├── Controllers │ │ └── WeatherForecastController.cs │ ├── Pages │ │ ├── Error.cshtml │ │ ├── Error.cshtml.cs │ │ └── _ViewImports.cshtml │ ├── Program.cs │ ├── Startup.cs │ ├── WeatherForecast.cs │ ├── WebApiFluent.csproj │ ├── appsettings.Development.json │ ├── appsettings.json │ └── wwwroot │ │ └── favicon.ico ├── build.cmd ├── v10.sln └── v10 │ ├── EnumAnnotationsNotNullable │ ├── AssemblyInfo.cs │ ├── EnumAnnotationsNotNullable.csproj │ ├── Enums.cs │ └── Output │ │ ├── byte-enum.ts │ │ ├── default-enum.ts │ │ ├── indexed-enum.ts │ │ ├── int-enum.ts │ │ ├── long-enum.ts │ │ ├── negative-enum.ts │ │ ├── s-byte-enum.ts │ │ ├── short-enum.ts │ │ ├── skipped-enum.ts │ │ ├── special-name-enum.ts │ │ ├── starting-index-enum.ts │ │ ├── u-int-enum.ts │ │ ├── u-long-enum.ts │ │ └── u-short-enum.ts │ ├── InheritanceAnnotationsNotNullable │ ├── AssemblyInfo.cs │ ├── Inheritance.cs │ ├── InheritanceAnnotationsNotNullable.csproj │ └── Output │ │ ├── Angular │ │ ├── abstract.ts │ │ ├── base.ts │ │ ├── derive-with-new.ts │ │ ├── derived-from-abstract.ts │ │ ├── derived-from-virtual.ts │ │ ├── derived.ts │ │ ├── index.ts │ │ └── virtual.ts │ │ ├── abstract.ts │ │ ├── base.ts │ │ ├── derive-with-new.ts │ │ ├── derived-from-abstract.ts │ │ ├── derived-from-virtual.ts │ │ ├── derived.ts │ │ └── virtual.ts │ ├── SelfReferencingAnnotationsNullable │ ├── AssemblyInfo.cs │ ├── Output │ │ └── self-referencing-type.ts │ ├── SelfReferencingAnnotationsNullable.csproj │ └── SelfReferencingType.cs │ ├── StrictAnnotationsNotNullable │ ├── AssemblyInfo.cs │ ├── Output │ │ ├── not-strict-class.ts │ │ ├── not-strict-interface.ts │ │ ├── strict-class.ts │ │ └── strict-interface.ts │ ├── Strict.cs │ └── StrictAnnotationsNotNullable.csproj │ ├── StrictAnnotationsNullable │ ├── AssemblyInfo.cs │ ├── Output │ │ ├── not-strict-class.ts │ │ ├── not-strict-interface.ts │ │ ├── strict-class.ts │ │ └── strict-interface.ts │ ├── Strict.cs │ └── StrictAnnotationsNullable.csproj │ ├── TypesAnnotationsNotNullable │ ├── AssemblyInfo.cs │ ├── Output │ │ ├── generic-sub-type.ts │ │ ├── index.ts │ │ ├── sub-type.ts │ │ └── types.ts │ ├── Types.cs │ └── TypesAnnotationsNotNullable.csproj │ ├── TypesAnnotationsNullable │ ├── AssemblyInfo.cs │ ├── Output │ │ ├── generic-sub-type.ts │ │ ├── index.ts │ │ ├── sub-type.ts │ │ └── types.ts │ ├── Types.cs │ └── TypesAnnotationsNullable.csproj │ ├── TypesFluentNotNullable │ ├── Generator.cs │ ├── Types.cs │ └── TypesFluentNotNullable.csproj │ ├── TypesFluentNullable │ ├── Generator.cs │ ├── Types.cs │ └── TypesFluentNullable.csproj │ └── build.cmd ├── Tsql.Tests ├── FullStageTests.cs ├── KY.Generator.Tsql.Tests.csproj ├── Properties │ ├── Resources.Designer.cs │ └── Resources.resx └── Resources │ ├── User.cs.result │ └── tsql.generator.json ├── Tsql ├── Commands │ ├── TsqlReadCommand.cs │ └── TsqlReadCommandParameters.cs ├── Configurations │ ├── TsqlReadConfiguration.cs │ ├── TsqlReadEntity.cs │ ├── TsqlReadEntityKeyAction.cs │ └── TsqlReadStoredProcedure.cs ├── Fluent │ ├── Extensions │ │ └── ReadFluentSyntaxExtension.cs │ ├── ITsqlReadSyntax.cs │ └── TsqlReadSyntax.cs ├── KY.Generator.Tsql.csproj ├── KY.Generator.Tsql.csproj.DotSettings ├── Language │ ├── TsqlLanguage.cs │ └── TypeMappingExtension.cs ├── Properties │ ├── Resources.Designer.cs │ └── Resources.resx ├── Readers │ └── TsqlReader.cs ├── Transfers │ └── StoredProcedureTransferObject.cs ├── TsqlModule.cs └── Type │ ├── TsqlColumn.cs │ ├── TsqlNavigationProperty.cs │ ├── TsqlParameter.cs │ └── TsqlTypeReader.cs ├── TypeScript.Tests ├── KY.Generator.TypeScript.Tests.csproj ├── TemplateWriterTests.cs └── TypeScriptIndexReaderTests.cs ├── TypeScript ├── Commands │ └── TypeScriptModelCommand.cs ├── Extensions │ ├── ClassTemplateExtension.cs │ ├── ConstructorTemplateExtension.cs │ ├── DeclareTypeTemplateExtension.cs │ ├── FileTemplateExtension.cs │ ├── NamespaceTemplateExtension.cs │ ├── ParameterTemplateExtension.cs │ └── TypeScriptTemplateExtension.cs ├── Fluent │ └── WriteFluentSyntaxExtension.cs ├── Helpers │ ├── TypeScriptCode.cs │ └── TypeScriptStrictHelper.cs ├── KY.Generator.TypeScript.csproj ├── KY.Generator.TypeScript.csproj.DotSettings ├── Languages │ ├── LanguageExtension.cs │ └── TypeScriptLanguage.cs ├── Options │ ├── TypeScriptOptions.cs │ └── TypeScriptOptionsFactory.cs ├── Templates │ ├── ConstructorTemplate.cs │ ├── DeclareTypeTemplate.cs │ ├── Extensions │ │ └── ClassTemplateExtension.cs │ ├── ForceNullTemplate.cs │ ├── ForceNullValueTemplate.cs │ ├── TypeScriptMethodTemplate.cs │ ├── TypeScriptTemplate.cs │ ├── TypeScriptUnionTypeTemplate.cs │ └── UnknownExportTemplate.cs ├── Transfer │ ├── ExportIndexLine.cs │ ├── IIndexLine.cs │ ├── Readers │ │ ├── TsConfigReader.cs │ │ └── TypeScriptIndexReader.cs │ ├── TsConfig.cs │ ├── TypeScriptIndexFile.cs │ ├── TypeScriptIndexHelper.cs │ ├── TypeScriptModelWriter.cs │ ├── UnknownIndexLine.cs │ └── Writers │ │ └── TypeScriptIndexWriter.cs ├── TypeScriptModule.cs └── Writers │ ├── AnonymousObjectWriter.cs │ ├── AttributeWriter.cs │ ├── BaseTypeWriter.cs │ ├── BaseWriter.cs │ ├── CastWriter.cs │ ├── DeclareTypeWriter.cs │ ├── DeclareWriter.cs │ ├── ParameterWriter.cs │ ├── ThrowWriter.cs │ ├── TypeScriptArrayTypeWriter.cs │ ├── TypeScriptDateTimeWriter.cs │ ├── TypeScriptDictionaryWriter.cs │ ├── TypeScriptEnumWriter.cs │ ├── TypeScriptFieldWriter.cs │ ├── TypeScriptFileWriter.cs │ ├── TypeScriptGenericTypeWriter.cs │ ├── TypeScriptMethodWriter.cs │ ├── TypeScriptNamespaceWriter.cs │ ├── TypeScriptNumberWriter.cs │ ├── TypeScriptOperatorWriter.cs │ ├── TypeScriptParameterWriter.cs │ ├── TypeScriptPropertyWriter.cs │ ├── TypeScriptTypeWriter.cs │ ├── TypeScriptUnionTypeWriter.cs │ ├── TypeScriptWriter.cs │ ├── UndefinedValueWriter.cs │ ├── UndefinedWriter.cs │ └── UsingWriter.cs ├── Watchdog ├── Commands │ ├── WatchdogCommand.cs │ └── WatchdogCommandParameters.cs ├── Fluent │ ├── GeneratorFluentMainExtension.cs │ ├── IWatchdogWaitSyntax.cs │ └── WatchdogWaitSyntax.cs ├── Helpers │ └── InstanceHelper.cs ├── KY.Generator.Watchdog.csproj ├── WatchdogModule.cs └── Watchdogs │ └── HttpWatchdog.cs ├── build.cmd ├── icon.png └── nircmd.exe /Angular/Configurations/AngularWriteModelConfiguration.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Configurations; 2 | using KY.Generator.TypeScript.Languages; 3 | 4 | namespace KY.Generator.Angular.Configurations 5 | { 6 | public class AngularWriteModelConfiguration : ModelWriteConfiguration 7 | { 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Angular/Models/IncrementVersion.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Angular.Models 2 | { 3 | public enum IncrementVersion 4 | { 5 | None, 6 | Major, 7 | Minor, 8 | Patch 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Annotations/Core/GenerateFieldsAsPropertiesAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace KY.Generator 4 | { 5 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Assembly, Inherited = false)] 6 | public class GenerateFieldsAsPropertiesAttribute : Attribute 7 | { } 8 | } 9 | -------------------------------------------------------------------------------- /Annotations/Core/GenerateFixCasingWithMappingAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace KY.Generator 5 | { 6 | [AttributeUsage(AttributeTargets.Class, Inherited = false)] 7 | public class GenerateFixCasingWithMappingAttribute : Attribute 8 | { 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Annotations/Core/GenerateNoHeaderAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace KY.Generator; 4 | 5 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Assembly, Inherited = false)] 6 | public class GenerateNoHeaderAttribute : Attribute 7 | { } 8 | -------------------------------------------------------------------------------- /Annotations/Core/GenerateNoOptionalAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace KY.Generator; 4 | 5 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Assembly, Inherited = false)] 6 | public class GenerateNoOptionalAttribute : Attribute 7 | { } 8 | -------------------------------------------------------------------------------- /Annotations/Core/GenerateOnlySubTypesAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace KY.Generator 4 | { 5 | [AttributeUsage(AttributeTargets.Class, Inherited = false)] 6 | public class GenerateOnlySubTypesAttribute : Attribute 7 | { } 8 | } 9 | -------------------------------------------------------------------------------- /Annotations/Core/GeneratePropertiesAsFieldsAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace KY.Generator 4 | { 5 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Assembly, Inherited = false)] 6 | public class GeneratePropertiesAsFieldsAttribute : Attribute 7 | { 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Annotations/Core/IGeneratorCommandAdditionalParameterAttribute.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace KY.Generator 4 | { 5 | public interface IGeneratorCommandAdditionalParameterAttribute 6 | { 7 | IEnumerable Commands { get; } 8 | } 9 | } -------------------------------------------------------------------------------- /Annotations/Core/IGeneratorCommandAttribute.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace KY.Generator 4 | { 5 | public interface IGeneratorCommandAttribute 6 | { 7 | IEnumerable Commands { get; } 8 | } 9 | } -------------------------------------------------------------------------------- /Annotations/Core/OutputLanguage.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator 2 | { 3 | public enum OutputLanguage 4 | { 5 | Inherit, 6 | Csharp, 7 | TypeScript 8 | } 9 | } -------------------------------------------------------------------------------- /Annotations/Sqlite/GenerateAsAutoIncrementAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace KY.Generator 4 | { 5 | [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] 6 | public class GenerateAsAutoIncrementAttribute : Attribute 7 | { } 8 | } 9 | -------------------------------------------------------------------------------- /Annotations/Sqlite/GenerateAsNotNullAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace KY.Generator 4 | { 5 | [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] 6 | public class GenerateAsNotNullAttribute : Attribute 7 | { } 8 | } 9 | -------------------------------------------------------------------------------- /Annotations/Sqlite/GenerateAsPrimaryKeyAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace KY.Generator 4 | { 5 | [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] 6 | public class GenerateAsPrimaryKeyAttribute : Attribute 7 | { } 8 | } 9 | -------------------------------------------------------------------------------- /Annotations/TypeScript/GenerateForceIndexAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace KY.Generator; 4 | 5 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Assembly, Inherited = false)] 6 | public class GenerateForceIndexAttribute : Attribute 7 | { 8 | } -------------------------------------------------------------------------------- /Annotations/TypeScript/GenerateNoIndexAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace KY.Generator; 4 | 5 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Assembly, Inherited = false)] 6 | public class GenerateNoIndexAttribute : Attribute 7 | { } -------------------------------------------------------------------------------- /AspDotNet.Tests/more-tests.md: -------------------------------------------------------------------------------- 1 | More ASP.NET tests are found in [KY.Generator.Angular.Tests](https://github.com/KY-Programming/generator/tree/master/Angular.Tests) 2 | -------------------------------------------------------------------------------- /AspDotNet/Commands/AspDotNetReadControllerCommandParameters.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Command; 2 | 3 | namespace KY.Generator.AspDotNet.Commands 4 | { 5 | internal class AspDotNetReadControllerCommandParameters : GeneratorCommandParameters 6 | { 7 | public string Namespace { get; set; } 8 | public string Name { get; set; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /AspDotNet/Commands/AspDotNetReadHubCommandParameters.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Command; 2 | 3 | namespace KY.Generator.AspDotNet.Commands 4 | { 5 | internal class AspDotNetReadHubCommandParameters : GeneratorCommandParameters 6 | { 7 | public string Namespace { get; set; } 8 | public string Name { get; set; } 9 | } 10 | } -------------------------------------------------------------------------------- /AspDotNet/Configurations/AspDotNetReadConfiguration.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.AspDotNet.Configurations 2 | { 3 | public class AspDotNetReadConfiguration 4 | { 5 | public AspDotNetReadControllerConfiguration Controller { get; set; } 6 | public AspDotNetReadHubConfiguration Hub { get; set; } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /AspDotNet/Configurations/AspDotNetReadControllerConfiguration.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.AspDotNet.Configurations 2 | { 3 | public class AspDotNetReadControllerConfiguration 4 | { 5 | public string Name { get; set; } 6 | public string Namespace { get; set; } 7 | public string Assembly { get; set; } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /AspDotNet/Configurations/AspDotNetReadHubConfiguration.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.AspDotNet.Configurations 2 | { 3 | public class AspDotNetReadHubConfiguration 4 | { 5 | public string Name { get; set; } 6 | public string Namespace { get; set; } 7 | public string Assembly { get; set; } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /AspDotNet/Configurations/AspDotNetWriteEntityControllerActionAttributeValueConfiguration.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.AspDotNet.Configurations 2 | { 3 | public class AspDotNetWriteEntityControllerActionAttributeValueConfiguration 4 | { 5 | public string Key { get; set; } 6 | public object Value { get; set; } 7 | } 8 | } -------------------------------------------------------------------------------- /AspDotNet/Writers/AspDotNetODataControllerWriter.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.AspDotNet.Writers 2 | { 3 | public class AspDotNetODataControllerWriter 4 | { 5 | // TODO: Implement 6 | } 7 | } -------------------------------------------------------------------------------- /CLI/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /CLI/FodyWeavers.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /Common/Client/GeneratorClient.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Client 2 | { 3 | public class GeneratorClient 4 | { 5 | 6 | } 7 | } -------------------------------------------------------------------------------- /Common/Client/GeneratorClientConfiguration.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Client 2 | { 3 | internal class GeneratorClientConfiguration 4 | { 5 | public string Connection { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Common/Client/GeneratorConfiguration.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Client 2 | { 3 | internal class GeneratorConfiguration 4 | { 5 | public GeneratorClientConfiguration Client { get; set; } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Common/Command/IPrepareCommand.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Command; 2 | 3 | public interface IPrepareCommand : IGeneratorCommand 4 | { 5 | 6 | } 7 | -------------------------------------------------------------------------------- /Common/Commands/CleanupCommandParameters.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Command; 2 | 3 | namespace KY.Generator.Commands 4 | { 5 | public class CleanupCommandParameters : GeneratorCommandParameters 6 | { 7 | public bool Logs { get; set; } = true; 8 | public bool Statistics { get; set; } = true; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Common/Commands/GetLicenseCommandParameters.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Command; 2 | 3 | namespace KY.Generator.Commands; 4 | 5 | internal class GetLicenseCommandParameters : GeneratorCommandParameters 6 | { 7 | } -------------------------------------------------------------------------------- /Common/Commands/OptionsCommandParameters.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Command; 2 | 3 | namespace KY.Generator.Commands 4 | { 5 | internal class OptionsCommandParameters : GeneratorCommandParameters 6 | { 7 | public string Option { get; set; } 8 | public string Value { get; set; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Common/Commands/ReadProjectCommandParameters.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Command; 2 | 3 | namespace KY.Generator.Commands 4 | { 5 | internal class ReadProjectCommandParameters : GeneratorCommandParameters 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Common/Commands/StatisticsCommandParameters.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Command; 2 | 3 | namespace KY.Generator.Commands 4 | { 5 | internal class StatisticsCommandParameters : GeneratorCommandParameters 6 | { 7 | public string File { get; set; } 8 | } 9 | } -------------------------------------------------------------------------------- /Common/Commands/VersionCommandParameters.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Command; 2 | 3 | namespace KY.Generator.Commands 4 | { 5 | internal class VersionCommandParameters : GeneratorCommandParameters 6 | { 7 | [GeneratorParameter("d")] 8 | public bool ShowDetailed { get; set; } 9 | } 10 | } -------------------------------------------------------------------------------- /Common/Configurations/ExecuteConfiguration.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Configurations 2 | { 3 | public class ExecuteConfiguration 4 | { 5 | public string File { get; set; } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Common/Configurations/IModelConfiguration.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace KY.Generator.Configurations 4 | { 5 | public interface IModelConfiguration 6 | { 7 | string Name { get; set; } 8 | string Namespace { get; } 9 | string RelativePath { get; } 10 | List Usings { get; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Common/Helpers/Code.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Templates; 2 | 3 | namespace KY.Generator 4 | { 5 | public struct Code 6 | { 7 | public static Code Instance { get; } = default; 8 | 9 | public MultilineCodeFragment Multiline() 10 | { 11 | return new MultilineCodeFragment(); 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /Common/Helpers/Codeable.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator 2 | { 3 | public abstract class Codeable 4 | { 5 | protected static Code Code = default; 6 | 7 | protected Codeable() 8 | { 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /Common/Licensing/License.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace KY.Generator.Licensing; 5 | 6 | public class License 7 | { 8 | public Guid Id { get; set; } 9 | public DateTime ValidUntil { get; set; } 10 | public List Messages { get; set; } = new(); 11 | } 12 | -------------------------------------------------------------------------------- /Common/Licensing/Message.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Licensing; 2 | 3 | public class Message 4 | { 5 | public MessageType Type { get; set; } 6 | public string Text { get; set; } 7 | } -------------------------------------------------------------------------------- /Common/Licensing/MessageType.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Licensing; 2 | 3 | public enum MessageType 4 | { 5 | Info, 6 | Warning, 7 | Error 8 | } -------------------------------------------------------------------------------- /Common/Mappings/ITypeMappingFromSyntax.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Mappings 2 | { 3 | public interface ITypeMappingFromSyntax 4 | { 5 | ITypeMappingTypeOrToDetailsSyntax To(string type, string constructor = null); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Common/Mappings/ITypeMappingMapSyntax.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Languages; 2 | 3 | namespace KY.Generator.Mappings 4 | { 5 | public interface ITypeMappingMapSyntax 6 | { 7 | ITypeMappingTypeSyntax To() where T : ILanguage; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Common/Mappings/ITypeMappingTypeSyntax.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Mappings 2 | { 3 | public interface ITypeMappingTypeSyntax 4 | { 5 | ITypeMappingFromSyntax From(string type); 6 | } 7 | } -------------------------------------------------------------------------------- /Common/Models/CaseMode.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Models 2 | { 3 | public enum CaseMode 4 | { 5 | Fix, 6 | AspDotNetCompatible 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Common/Models/Visibility.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Models 2 | { 3 | public enum Visibility 4 | { 5 | None, 6 | Private, 7 | Protected, 8 | Internal, 9 | Public 10 | } 11 | } -------------------------------------------------------------------------------- /Common/Options/IOptionsFactory.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator; 2 | 3 | public interface IOptionsFactory 4 | { 5 | bool CanCreate(Type optionsType); 6 | object Create(Type optionsType, object key, object? parent, object global); 7 | object CreateGlobal(Type optionsType, object key, object? parent); 8 | } -------------------------------------------------------------------------------- /Common/Output/IOutputAction.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Output 2 | { 3 | public interface IOutputAction 4 | { 5 | string FilePath { get; } 6 | void Execute(); 7 | } 8 | } -------------------------------------------------------------------------------- /Common/Output/IOutputCache.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Output 2 | { 3 | public interface IOutputCache : IOutputCacheBase 4 | { 5 | IOutputCache If(bool condition); 6 | IOutputCache EndIf(); 7 | IOutputCache ExtraIndent(int indents = 1); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Common/Settings/GlobalSettings.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace KY.Generator.Settings 4 | { 5 | public class GlobalSettings 6 | { 7 | public bool StatisticsEnabled { get; set; } = true; 8 | public Guid License { get; set; } = Guid.NewGuid(); 9 | } 10 | } -------------------------------------------------------------------------------- /Common/Statistics/CommandStatistic.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace KY.Generator.Statistics 4 | { 5 | public class CommandStatistic 6 | { 7 | public string Command { get; set; } 8 | public TimeSpan Duration { get; set; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Common/Syntax/IGeneratorRunSyntax.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Syntax 2 | { 3 | public interface IGeneratorRunSyntax 4 | { 5 | bool Run(); 6 | } 7 | } -------------------------------------------------------------------------------- /Common/Templates/Base/ICodeFragment.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Templates 2 | { 3 | public interface ICodeFragment 4 | { } 5 | } -------------------------------------------------------------------------------- /Common/Templates/Executing/AsTemplate.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Templates 2 | { 3 | public class AsTemplate : ChainedCodeFragment 4 | { 5 | public override string Separator => " "; 6 | public TypeTemplate Type { get; } 7 | 8 | public AsTemplate(TypeTemplate type) 9 | { 10 | this.Type = type; 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Common/Templates/Executing/BaseTemplate.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Templates 2 | { 3 | public class BaseTemplate : ChainedCodeFragment 4 | { 5 | public override string Separator => " "; 6 | } 7 | } -------------------------------------------------------------------------------- /Common/Templates/Executing/BlankLineTemplate.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Templates 2 | { 3 | public class BlankLineTemplate : ICodeFragment 4 | { } 5 | } -------------------------------------------------------------------------------- /Common/Templates/Executing/CastTemplate.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Templates 2 | { 3 | public class CastTemplate : ChainedCodeFragment 4 | { 5 | public TypeTemplate Type { get; } 6 | public override string Separator => ""; 7 | 8 | public CastTemplate(TypeTemplate type) 9 | { 10 | this.Type = type; 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Common/Templates/Executing/NotTemplate.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Templates 2 | { 3 | public class NotTemplate : ChainedCodeFragment 4 | { 5 | public override string Separator => " "; 6 | } 7 | } -------------------------------------------------------------------------------- /Common/Templates/Executing/NullConditionalTemplate.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Templates 2 | { 3 | public class NullConditionalTemplate : ChainedCodeFragment 4 | { 5 | public override string Separator => ""; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Common/Templates/Executing/NullValueTemplate.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Templates 2 | { 3 | public class NullValueTemplate : ChainedCodeFragment 4 | { 5 | public override string Separator => " "; 6 | } 7 | } -------------------------------------------------------------------------------- /Common/Templates/Executing/ParenthesisTemplate.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Templates 2 | { 3 | public class ParenthesisTemplate : ICodeFragment 4 | { 5 | public ICodeFragment Code { get; } 6 | 7 | public ParenthesisTemplate(ICodeFragment code) 8 | { 9 | this.Code = code; 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Common/Templates/Executing/ReturnTemplate.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Templates 2 | { 3 | public class ReturnTemplate : ICodeFragment 4 | { 5 | public ICodeFragment Code { get; } 6 | 7 | public ReturnTemplate(ICodeFragment code) 8 | { 9 | this.Code = code; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Common/Templates/Executing/ThisTemplate.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Templates 2 | { 3 | public class ThisTemplate : ChainedCodeFragment 4 | { 5 | public override string Separator => " "; 6 | } 7 | } -------------------------------------------------------------------------------- /Common/Templates/Executing/TypeOfTemplate.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Templates 2 | { 3 | public class TypeOfTemplate : ICodeFragment 4 | { 5 | public TypeTemplate Type { get; } 6 | 7 | public TypeOfTemplate(TypeTemplate type) 8 | { 9 | this.Type = type; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Common/Templates/Extensions/CommentTemplateExtension.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Templates.Extensions 2 | { 3 | public static class CommentTemplateExtension 4 | { 5 | public static bool IsEmpty(this CommentTemplate comment) 6 | { 7 | return comment == null || string.IsNullOrEmpty(comment.Description); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Common/Templates/Structural/ExportTemplate.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Templates 2 | { 3 | public class ExportTemplate : UsingTemplate 4 | { 5 | public ExportTemplate(string nameSpace, string type, string path) 6 | : base(nameSpace, type, path) 7 | { } 8 | } 9 | } -------------------------------------------------------------------------------- /Common/Templates/Types/NullTemplate.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Templates 2 | { 3 | public class NullTemplate : TypeTemplate 4 | { 5 | public NullTemplate() 6 | : base(string.Empty) 7 | { } 8 | } 9 | } -------------------------------------------------------------------------------- /Common/Templates/Types/StringTemplate.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Templates 2 | { 3 | public class StringTemplate : ChainedCodeFragment 4 | { 5 | public override string Separator => " "; 6 | public string Value { get; } 7 | 8 | public StringTemplate(string value) 9 | { 10 | this.Value = value; 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Common/Templates/Types/VoidTemplate.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Templates 2 | { 3 | public class VoidTemplate : TypeTemplate 4 | { 5 | public VoidTemplate() 6 | : base(string.Empty) 7 | { } 8 | } 9 | } -------------------------------------------------------------------------------- /Common/Transfer/ControllerTransferObject.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Transfer 2 | { 3 | public class ControllerTransferObject : TypeTransferObject 4 | { } 5 | } -------------------------------------------------------------------------------- /Common/Transfer/EntityActionParameterTransferObject.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Transfer 2 | { 3 | public class EntityActionParameterTransferObject 4 | { 5 | public string Name { get; set; } 6 | public TypeTransferObject Type { get; set; } 7 | } 8 | } -------------------------------------------------------------------------------- /Common/Transfer/EntityKeyTransferObject.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Transfer 2 | { 3 | public class EntityKeyTransferObject 4 | { 5 | public string Name { get; set; } 6 | public TypeTransferObject Type { get; set; } 7 | public PropertyTransferObject Property { get; set; } 8 | } 9 | } -------------------------------------------------------------------------------- /Common/Transfer/EntitySetTransferObject.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Transfer 2 | { 3 | public class EntitySetTransferObject : HttpServiceTransferObject 4 | { 5 | public EntityTransferObject Entity { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Common/Transfer/GenericAliasTransferObject.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Transfer 2 | { 3 | public class GenericAliasTransferObject 4 | { 5 | public TypeTransferObject Alias { get; set; } 6 | public TypeTransferObject Type { get; set; } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Common/Transfer/HttpServiceActionTypeTransferObject.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Transfer 2 | { 3 | public enum HttpServiceActionTypeTransferObject 4 | { 5 | Get, 6 | Post, 7 | Put, 8 | Patch, 9 | Delete 10 | } 11 | } -------------------------------------------------------------------------------- /Common/Transfer/ITransferObject.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Transfer 2 | { 3 | public interface ITransferObject 4 | { 5 | 6 | } 7 | } -------------------------------------------------------------------------------- /Common/Transfer/MethodParameterTransferObject.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Transfer 2 | { 3 | public class MethodParameterTransferObject 4 | { 5 | public string Name { get; set; } 6 | public string Comment { get; set; } 7 | public TypeTransferObject Type { get; set; } 8 | public bool IsOptional { get; set; } 9 | } 10 | } -------------------------------------------------------------------------------- /Common/Transfer/Readers/ITransferReader.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Transfer.Readers 2 | { 3 | public interface ITransferReader 4 | { } 5 | } 6 | -------------------------------------------------------------------------------- /Common/Transfer/Writers/ITransferWriter.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Transfer.Writers 2 | { 3 | public interface ITransferWriter 4 | { } 5 | } 6 | -------------------------------------------------------------------------------- /Common/Writers/BlankLineWriter.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Output; 2 | using KY.Generator.Templates; 3 | 4 | namespace KY.Generator.Writers 5 | { 6 | public class BlankLineWriter : ITemplateWriter 7 | { 8 | public virtual void Write(ICodeFragment fragment, IOutputCache output) 9 | { 10 | output.BreakLine(); 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Common/Writers/IGenericTypeWriter.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Output; 2 | using KY.Generator.Templates; 3 | 4 | namespace KY.Generator.Writers 5 | { 6 | public interface IGenericTypeWriter 7 | { 8 | void Write(GenericTypeTemplate template, IOutputCache output); 9 | } 10 | } -------------------------------------------------------------------------------- /Common/Writers/ITemplateWriter.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Output; 2 | using KY.Generator.Templates; 3 | 4 | namespace KY.Generator.Writers 5 | { 6 | public interface ITemplateWriter 7 | { 8 | void Write(ICodeFragment fragment, IOutputCache output); 9 | } 10 | } -------------------------------------------------------------------------------- /Common/Writers/ITypeWriter.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Output; 2 | using KY.Generator.Templates; 3 | 4 | namespace KY.Generator.Writers 5 | { 6 | public interface ITypeWriter 7 | { 8 | void Write(TypeTemplate template, IOutputCache output); 9 | } 10 | } -------------------------------------------------------------------------------- /Common/Writers/NotWriter.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Output; 2 | using KY.Generator.Templates; 3 | 4 | namespace KY.Generator.Writers 5 | { 6 | public class NotWriter : ITemplateWriter 7 | { 8 | public virtual void Write(ICodeFragment fragment, IOutputCache output) 9 | { 10 | output.Add("!"); 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Common/Writers/NullConditionalWriter.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Output; 2 | using KY.Generator.Templates; 3 | 4 | namespace KY.Generator.Writers 5 | { 6 | public class NullConditionalWriter : ITemplateWriter 7 | { 8 | public virtual void Write(ICodeFragment fragment, IOutputCache output) 9 | { 10 | output.Add("?"); 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Common/Writers/NullValueWriter.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Output; 2 | using KY.Generator.Templates; 3 | 4 | namespace KY.Generator.Writers 5 | { 6 | public class NullValueWriter : ITemplateWriter 7 | { 8 | public virtual void Write(ICodeFragment fragment, IOutputCache output) 9 | { 10 | output.Add("null"); 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Common/Writers/NullWriter.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Output; 2 | using KY.Generator.Templates; 3 | 4 | namespace KY.Generator.Writers 5 | { 6 | public class NullWriter : ITemplateWriter 7 | { 8 | public virtual void Write(ICodeFragment fragment, IOutputCache output) 9 | { 10 | output.Add("null"); 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Common/Writers/ThisWriter.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Output; 2 | using KY.Generator.Templates; 3 | 4 | namespace KY.Generator.Writers 5 | { 6 | public class ThisWriter : ITemplateWriter 7 | { 8 | public virtual void Write(ICodeFragment fragment, IOutputCache output) 9 | { 10 | output.Add("this"); 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Common/Writers/VoidWriter.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Output; 2 | using KY.Generator.Templates; 3 | 4 | namespace KY.Generator.Writers 5 | { 6 | public class VoidWriter : ITemplateWriter 7 | { 8 | public virtual void Write(ICodeFragment fragment, IOutputCache output) 9 | { 10 | output.Add("void"); 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Csharp/Languages/LanguageExtension.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Languages; 2 | 3 | namespace KY.Generator.Csharp.Languages 4 | { 5 | public static class LanguageExtension 6 | { 7 | public static bool IsCsharp(this ILanguage language) 8 | { 9 | return language is CsharpLanguage; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Csharp/Templates/CsharpTemplate.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Templates; 2 | 3 | namespace KY.Generator.Csharp.Templates 4 | { 5 | public class CsharpTemplate : ICodeFragment 6 | { 7 | public string Code { get; set; } 8 | 9 | public CsharpTemplate(string code) 10 | { 11 | this.Code = code; 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /Csharp/Templates/VerbatimStringTemplate.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Templates; 2 | 3 | namespace KY.Generator.Csharp.Templates 4 | { 5 | public class VerbatimStringTemplate : StringTemplate 6 | { 7 | public VerbatimStringTemplate(string value) 8 | : base(value) 9 | { } 10 | } 11 | } -------------------------------------------------------------------------------- /EntityFramework/Configurations/EntityFrameworkCoreWriteConfiguration.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.EntityFramework.Configurations 2 | { 3 | internal class EntityFrameworkCoreWriteConfiguration : EntityFrameworkWriteConfiguration 4 | { 5 | public override bool IsCore => true; 6 | } 7 | } -------------------------------------------------------------------------------- /EntityFramework/Configurations/Fluent/FluentSetting.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.EntityFramework.Configurations.Fluent 2 | { 3 | public class FluentIgnore : IFluentLanguageElement 4 | { 5 | public string Property { get; } 6 | 7 | public FluentIgnore(string property) 8 | { 9 | this.Property = property; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /EntityFramework/Configurations/Fluent/FluentStoredProcedureAction.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.EntityFramework.Configurations.Fluent 2 | { 3 | public enum FluentStoredProcedureAction 4 | { 5 | Insert, 6 | Delete, 7 | Update 8 | } 9 | } -------------------------------------------------------------------------------- /EntityFramework/Configurations/Fluent/IFluentLanguageElement.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.EntityFramework.Configurations.Fluent 2 | { 3 | public interface IFluentLanguageElement { } 4 | } -------------------------------------------------------------------------------- /EntityFramework/EntityFrameworkModule.cs: -------------------------------------------------------------------------------- 1 | using KY.Core.Dependency; 2 | using KY.Core.Module; 3 | 4 | namespace KY.Generator.EntityFramework 5 | { 6 | public class EntityFrameworkModule : ModuleBase 7 | { 8 | public EntityFrameworkModule(IDependencyResolver dependencyResolver) 9 | : base(dependencyResolver) 10 | { } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ChangeReturnType/ClientApp/src/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |
6 | 7 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ChangeReturnType/ClientApp/src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-root', 5 | templateUrl: './app.component.html' 6 | }) 7 | export class AppComponent { 8 | title = 'app'; 9 | } 10 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ChangeReturnType/ClientApp/src/app/counter/counter.component.html: -------------------------------------------------------------------------------- 1 |

Counter

2 | 3 |

This is a simple example of an Angular component.

4 | 5 |

Current count: {{ currentCount }}

6 | 7 | 8 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ChangeReturnType/ClientApp/src/app/home/home.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-home', 5 | templateUrl: './home.component.html', 6 | }) 7 | export class HomeComponent { 8 | } 9 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ChangeReturnType/ClientApp/src/app/models/custom-weather-forecast.ts: -------------------------------------------------------------------------------- 1 | import { WeatherForecast } from './weather-forecast'; 2 | 3 | export class CustomWeatherForecast extends WeatherForecast { 4 | public additionalProperty: string = ''; 5 | } 6 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ChangeReturnType/ClientApp/src/assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KY-Programming/generator/f452ea9490f0864b858eefcef5631ecc7edea30a/Examples/Angular/Annotation/ChangeReturnType/ClientApp/src/assets/.gitkeep -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ChangeReturnType/ClientApp/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ChangeReturnType/Pages/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using ChangeReturnType 2 | @namespace ChangeReturnType.Pages 3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ChangeReturnType/SpecialWeatherForecast.cs: -------------------------------------------------------------------------------- 1 | namespace ChangeReturnType; 2 | 3 | public class SpecialWeatherForecast : WeatherForecast 4 | { 5 | 6 | } -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ChangeReturnType/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.AspNetCore.SpaProxy": "Information", 7 | "Microsoft.Hosting.Lifetime": "Information" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ChangeReturnType/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | }, 9 | "AllowedHosts": "*" 10 | } 11 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ChangeReturnType/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KY-Programming/generator/f452ea9490f0864b858eefcef5631ecc7edea30a/Examples/Angular/Annotation/ChangeReturnType/wwwroot/favicon.ico -------------------------------------------------------------------------------- /Examples/Angular/Annotation/FromModel/TypeToRead.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | namespace FromModel 4 | { 5 | [GenerateAngularModel("Output/Models")] 6 | internal class TypeToRead 7 | { 8 | public string StringProperty { get; set; } 9 | public int NumberProperty { get; set; } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ModelFromAssembly/AnotherType.cs: -------------------------------------------------------------------------------- 1 | namespace ModelFromAssembly 2 | { 3 | public class AnotherType 4 | { 5 | public string StringField; 6 | public int NumberField; 7 | } 8 | } -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ModelFromAssembly/IgnoredType.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | namespace ModelFromAssembly 4 | { 5 | [GenerateIgnore] 6 | public class IgnoredType 7 | { } 8 | } -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ModelFromAssembly/Index.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | namespace ModelFromAssembly 4 | { 5 | [GenerateAngularModel("Output"), GenerateOnlySubTypes] 6 | internal class Index 7 | { 8 | public TypeToRead type1; 9 | public AnotherType type2; 10 | public IgnoredType type3; 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ModelFromAssembly/Output/index.ts: -------------------------------------------------------------------------------- 1 |  2 | export * from "./another-type"; 3 | export * from "./type-to-read"; 4 | 5 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ModelFromAssembly/TypeToRead.cs: -------------------------------------------------------------------------------- 1 | namespace ModelFromAssembly 2 | { 3 | public class TypeToRead 4 | { 5 | public string StringProperty { get; set; } 6 | public int NumberProperty { get; set; } 7 | } 8 | } -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ServiceFromAspNetCore/ClientApp/.editorconfig: -------------------------------------------------------------------------------- 1 | # Editor configuration, see http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 2 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | max_line_length = off 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ServiceFromAspNetCore/ClientApp/e2e/src/app.po.ts: -------------------------------------------------------------------------------- 1 | import { browser, by, element } from 'protractor'; 2 | 3 | export class AppPage { 4 | navigateTo() { 5 | return browser.get('/'); 6 | } 7 | 8 | getMainHeading() { 9 | return element(by.css('app-root h1')).getText(); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ServiceFromAspNetCore/ClientApp/e2e/tsconfig.e2e.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "module": "commonjs", 6 | "target": "es5", 7 | "types": [ 8 | "jasmine", 9 | "jasminewd2", 10 | "node" 11 | ] 12 | } 13 | } -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ServiceFromAspNetCore/ClientApp/src/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |
6 | 7 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ServiceFromAspNetCore/ClientApp/src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-root', 5 | templateUrl: './app.component.html' 6 | }) 7 | export class AppComponent { 8 | title = 'app'; 9 | } 10 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ServiceFromAspNetCore/ClientApp/src/app/counter/counter.component.html: -------------------------------------------------------------------------------- 1 |

Counter

2 | 3 |

This is a simple example of an Angular component.

4 | 5 |

Current count: {{ currentCount }}

6 | 7 | 8 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ServiceFromAspNetCore/ClientApp/src/app/home/home.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-home', 5 | templateUrl: './home.component.html', 6 | }) 7 | export class HomeComponent { 8 | } 9 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ServiceFromAspNetCore/ClientApp/src/assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KY-Programming/generator/f452ea9490f0864b858eefcef5631ecc7edea30a/Examples/Angular/Annotation/ServiceFromAspNetCore/ClientApp/src/assets/.gitkeep -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ServiceFromAspNetCore/ClientApp/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ServiceFromAspNetCore/ClientApp/src/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "types": [] 6 | }, 7 | "exclude": [ 8 | "src/test.ts", 9 | "**/*.spec.ts" 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ServiceFromAspNetCore/ClientApp/src/tsconfig.server.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "module": "commonjs" 5 | }, 6 | "angularCompilerOptions": { 7 | "entryModule": "app/app.server.module#AppServerModule" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ServiceFromAspNetCore/Pages/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using ServiceFromAspNetCoreAnnotation 2 | @namespace ServiceFromAspNetCoreAnnotation.Pages 3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 4 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ServiceFromAspNetCore/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ServiceFromAspNetCore/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | }, 9 | "AllowedHosts": "*" 10 | } 11 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ServiceFromAspNetCore/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KY-Programming/generator/f452ea9490f0864b858eefcef5631ecc7edea30a/Examples/Angular/Annotation/ServiceFromAspNetCore/wwwroot/favicon.ico -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ServiceFromAspNetCoreSignalRHub/ClientApp/.editorconfig: -------------------------------------------------------------------------------- 1 | # Editor configuration, see http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 2 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | max_line_length = off 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ServiceFromAspNetCoreSignalRHub/ClientApp/e2e/src/app.po.ts: -------------------------------------------------------------------------------- 1 | import { browser, by, element } from 'protractor'; 2 | 3 | export class AppPage { 4 | navigateTo() { 5 | return browser.get('/'); 6 | } 7 | 8 | getMainHeading() { 9 | return element(by.css('app-root h1')).getText(); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ServiceFromAspNetCoreSignalRHub/ClientApp/e2e/tsconfig.e2e.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "module": "commonjs", 6 | "target": "es5", 7 | "types": [ 8 | "jasmine", 9 | "jasminewd2", 10 | "node" 11 | ] 12 | } 13 | } -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ServiceFromAspNetCoreSignalRHub/ClientApp/src/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |
6 | 7 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ServiceFromAspNetCoreSignalRHub/ClientApp/src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-root', 5 | templateUrl: './app.component.html' 6 | }) 7 | export class AppComponent { 8 | title = 'app'; 9 | } 10 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ServiceFromAspNetCoreSignalRHub/ClientApp/src/app/counter/counter.component.html: -------------------------------------------------------------------------------- 1 |

Counter

2 | 3 |

This is a simple example of an Angular component.

4 | 5 |

Current count: {{ currentCount }}

6 | 7 | 8 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ServiceFromAspNetCoreSignalRHub/ClientApp/src/app/home/home.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-home', 5 | templateUrl: './home.component.html', 6 | }) 7 | export class HomeComponent { 8 | } 9 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ServiceFromAspNetCoreSignalRHub/ClientApp/src/assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KY-Programming/generator/f452ea9490f0864b858eefcef5631ecc7edea30a/Examples/Angular/Annotation/ServiceFromAspNetCoreSignalRHub/ClientApp/src/assets/.gitkeep -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ServiceFromAspNetCoreSignalRHub/ClientApp/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ServiceFromAspNetCoreSignalRHub/ClientApp/src/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "types": [] 6 | }, 7 | "exclude": [ 8 | "src/test.ts", 9 | "**/*.spec.ts" 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ServiceFromAspNetCoreSignalRHub/ClientApp/src/tsconfig.server.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "module": "commonjs" 5 | }, 6 | "angularCompilerOptions": { 7 | "entryModule": "app/app.server.module#AppServerModule" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ServiceFromAspNetCoreSignalRHub/Pages/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using ServiceFromAspNetCoreSignalRHub 2 | @namespace ServiceFromAspNetCoreSignalRHub.Pages 3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 4 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ServiceFromAspNetCoreSignalRHub/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ServiceFromAspNetCoreSignalRHub/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | }, 9 | "AllowedHosts": "*" 10 | } 11 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/ServiceFromAspNetCoreSignalRHub/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KY-Programming/generator/f452ea9490f0864b858eefcef5631ecc7edea30a/Examples/Angular/Annotation/ServiceFromAspNetCoreSignalRHub/wwwroot/favicon.ico -------------------------------------------------------------------------------- /Examples/Angular/Annotation/Strict/ClientApp/src/app/app-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { RouterModule, Routes } from '@angular/router'; 3 | 4 | const routes: Routes = []; 5 | 6 | @NgModule({ 7 | imports: [RouterModule.forRoot(routes)], 8 | exports: [RouterModule] 9 | }) 10 | export class AppRoutingModule { } 11 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/Strict/ClientApp/src/app/app.component.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KY-Programming/generator/f452ea9490f0864b858eefcef5631ecc7edea30a/Examples/Angular/Annotation/Strict/ClientApp/src/app/app.component.scss -------------------------------------------------------------------------------- /Examples/Angular/Annotation/Strict/ClientApp/src/app/models/index.ts: -------------------------------------------------------------------------------- 1 |  2 | export * from "./sub-type"; 3 | export * from "./weather-forecast"; 4 | 5 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/Strict/ClientApp/src/assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KY-Programming/generator/f452ea9490f0864b858eefcef5631ecc7edea30a/Examples/Angular/Annotation/Strict/ClientApp/src/assets/.gitkeep -------------------------------------------------------------------------------- /Examples/Angular/Annotation/Strict/ClientApp/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/Strict/ClientApp/src/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KY-Programming/generator/f452ea9490f0864b858eefcef5631ecc7edea30a/Examples/Angular/Annotation/Strict/ClientApp/src/favicon.ico -------------------------------------------------------------------------------- /Examples/Angular/Annotation/Strict/ClientApp/src/styles.scss: -------------------------------------------------------------------------------- 1 | /* You can add global styles to this file, and also import other style files */ 2 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/Strict/Pages/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using Strict 2 | @namespace Strict.Pages 3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers -------------------------------------------------------------------------------- /Examples/Angular/Annotation/Strict/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/Strict/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | }, 9 | "AllowedHosts": "*" 10 | } 11 | -------------------------------------------------------------------------------- /Examples/Angular/Annotation/Strict/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KY-Programming/generator/f452ea9490f0864b858eefcef5631ecc7edea30a/Examples/Angular/Annotation/Strict/wwwroot/favicon.ico -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ChangeReturnType/Assembly/ClientApp/e2e/src/app.po.ts: -------------------------------------------------------------------------------- 1 | import { browser, by, element } from 'protractor'; 2 | 3 | export class AppPage { 4 | navigateTo() { 5 | return browser.get('/'); 6 | } 7 | 8 | getMainHeading() { 9 | return element(by.css('app-root h1')).getText(); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ChangeReturnType/Assembly/ClientApp/e2e/tsconfig.e2e.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "module": "commonjs", 6 | "target": "es5", 7 | "types": [ 8 | "jasmine", 9 | "jasminewd2", 10 | "node" 11 | ] 12 | } 13 | } -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ChangeReturnType/Assembly/ClientApp/src/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |
6 | 7 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ChangeReturnType/Assembly/ClientApp/src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-root', 5 | templateUrl: './app.component.html' 6 | }) 7 | export class AppComponent { 8 | title = 'app'; 9 | } 10 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ChangeReturnType/Assembly/ClientApp/src/app/counter/counter.component.html: -------------------------------------------------------------------------------- 1 |

Counter

2 | 3 |

This is a simple example of an Angular component.

4 | 5 |

Current count: {{ currentCount }}

6 | 7 | 8 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ChangeReturnType/Assembly/ClientApp/src/app/home/home.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-home', 5 | templateUrl: './home.component.html', 6 | }) 7 | export class HomeComponent { 8 | } 9 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ChangeReturnType/Assembly/ClientApp/src/app/models/custom-weather-forecast.ts: -------------------------------------------------------------------------------- 1 | import { WeatherForecast } from './weather-forecast'; 2 | 3 | export class CustomWeatherForecast extends WeatherForecast { 4 | public additionalProperty: string; 5 | } 6 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ChangeReturnType/Assembly/ClientApp/src/assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KY-Programming/generator/f452ea9490f0864b858eefcef5631ecc7edea30a/Examples/Angular/Fluent/ChangeReturnType/Assembly/ClientApp/src/assets/.gitkeep -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ChangeReturnType/Assembly/ClientApp/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ChangeReturnType/Assembly/ClientApp/src/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "types": [] 6 | }, 7 | "exclude": [ 8 | "src/test.ts", 9 | "**/*.spec.ts" 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ChangeReturnType/Assembly/ClientApp/src/tsconfig.server.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "module": "commonjs" 5 | }, 6 | "angularCompilerOptions": { 7 | "entryModule": "app/app.server.module#AppServerModule" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ChangeReturnType/Assembly/Pages/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using ChangeReturnType 2 | @namespace ChangeReturnType.Pages 3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ChangeReturnType/Assembly/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ChangeReturnType/Assembly/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | }, 9 | "AllowedHosts": "*" 10 | } 11 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ChangeReturnType/Assembly/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KY-Programming/generator/f452ea9490f0864b858eefcef5631ecc7edea30a/Examples/Angular/Fluent/ChangeReturnType/Assembly/wwwroot/favicon.ico -------------------------------------------------------------------------------- /Examples/Angular/Fluent/FromModel/Assembly/FromModel.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/FromModel/Assembly/TypeToRead.cs: -------------------------------------------------------------------------------- 1 | namespace FromModel 2 | { 3 | public class TypeToRead 4 | { 5 | public string StringProperty { get; set; } 6 | public int NumberProperty { get; set; } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/GenerateInterfacesInsteadClasses/Assembly/GenerateInterfacesInsteadClasses.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/GenerateInterfacesInsteadClasses/Assembly/TestModel.cs: -------------------------------------------------------------------------------- 1 | namespace GenerateInterfacesInsteadClasses 2 | { 3 | public class TestModel 4 | { 5 | public string Property { get; set; } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/GenerateInterfacesInsteadClasses/Generator/Output/test-model.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export interface TestModel { 5 | property?: string; 6 | } 7 | 8 | // outputid:068986b5-c7fe-4280-9442-8601b87f9114 9 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/NpmPackage/NpmPackage.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/NpmPackage/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/NpmPackage/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | }, 9 | "AllowedHosts": "*" 10 | } 11 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ServiceFromAspNetCore/Service/ClientApp/e2e/src/app.po.ts: -------------------------------------------------------------------------------- 1 | import { browser, by, element } from 'protractor'; 2 | 3 | export class AppPage { 4 | navigateTo() { 5 | return browser.get('/'); 6 | } 7 | 8 | getMainHeading() { 9 | return element(by.css('app-root h1')).getText(); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ServiceFromAspNetCore/Service/ClientApp/e2e/tsconfig.e2e.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "module": "commonjs", 6 | "target": "es5", 7 | "types": [ 8 | "jasmine", 9 | "jasminewd2", 10 | "node" 11 | ] 12 | } 13 | } -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ServiceFromAspNetCore/Service/ClientApp/src/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |
6 | 7 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ServiceFromAspNetCore/Service/ClientApp/src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-root', 5 | templateUrl: './app.component.html' 6 | }) 7 | export class AppComponent { 8 | title = 'app'; 9 | } 10 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ServiceFromAspNetCore/Service/ClientApp/src/app/counter/counter.component.html: -------------------------------------------------------------------------------- 1 |

Counter

2 | 3 |

This is a simple example of an Angular component.

4 | 5 |

Current count: {{ currentCount }}

6 | 7 | 8 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ServiceFromAspNetCore/Service/ClientApp/src/app/home/home.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-home', 5 | templateUrl: './home.component.html', 6 | }) 7 | export class HomeComponent { 8 | } 9 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ServiceFromAspNetCore/Service/ClientApp/src/assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KY-Programming/generator/f452ea9490f0864b858eefcef5631ecc7edea30a/Examples/Angular/Fluent/ServiceFromAspNetCore/Service/ClientApp/src/assets/.gitkeep -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ServiceFromAspNetCore/Service/ClientApp/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ServiceFromAspNetCore/Service/ClientApp/src/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "types": [] 6 | }, 7 | "exclude": [ 8 | "src/test.ts", 9 | "**/*.spec.ts" 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ServiceFromAspNetCore/Service/ClientApp/src/tsconfig.server.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "module": "commonjs" 5 | }, 6 | "angularCompilerOptions": { 7 | "entryModule": "app/app.server.module#AppServerModule" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ServiceFromAspNetCore/Service/Pages/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using ServiceFromAspNetCoreViaFluentApi 2 | @namespace ServiceFromAspNetCoreViaFluentApi.Pages 3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 4 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ServiceFromAspNetCore/Service/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ServiceFromAspNetCore/Service/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | }, 9 | "AllowedHosts": "*" 10 | } 11 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ServiceFromAspNetCore/Service/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KY-Programming/generator/f452ea9490f0864b858eefcef5631ecc7edea30a/Examples/Angular/Fluent/ServiceFromAspNetCore/Service/wwwroot/favicon.ico -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ServiceFromSignalR/Service/ClientApp/e2e/src/app.po.ts: -------------------------------------------------------------------------------- 1 | import { browser, by, element } from 'protractor'; 2 | 3 | export class AppPage { 4 | navigateTo() { 5 | return browser.get('/'); 6 | } 7 | 8 | getMainHeading() { 9 | return element(by.css('app-root h1')).getText(); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ServiceFromSignalR/Service/ClientApp/e2e/tsconfig.e2e.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "module": "commonjs", 6 | "target": "es5", 7 | "types": [ 8 | "jasmine", 9 | "jasminewd2", 10 | "node" 11 | ] 12 | } 13 | } -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ServiceFromSignalR/Service/ClientApp/src/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |
6 | 7 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ServiceFromSignalR/Service/ClientApp/src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-root', 5 | templateUrl: './app.component.html' 6 | }) 7 | export class AppComponent { 8 | title = 'app'; 9 | } 10 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ServiceFromSignalR/Service/ClientApp/src/app/counter/counter.component.html: -------------------------------------------------------------------------------- 1 |

Counter

2 | 3 |

This is a simple example of an Angular component.

4 | 5 |

Current count: {{ currentCount }}

6 | 7 | 8 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ServiceFromSignalR/Service/ClientApp/src/app/home/home.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-home', 5 | templateUrl: './home.component.html', 6 | }) 7 | export class HomeComponent { 8 | } 9 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ServiceFromSignalR/Service/ClientApp/src/app/models/index.ts: -------------------------------------------------------------------------------- 1 |  2 | export * from "./connection-status"; 3 | export * from "./weather-forecast"; 4 | 5 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ServiceFromSignalR/Service/ClientApp/src/assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KY-Programming/generator/f452ea9490f0864b858eefcef5631ecc7edea30a/Examples/Angular/Fluent/ServiceFromSignalR/Service/ClientApp/src/assets/.gitkeep -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ServiceFromSignalR/Service/ClientApp/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ServiceFromSignalR/Service/ClientApp/src/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "types": [] 6 | }, 7 | "exclude": [ 8 | "src/test.ts", 9 | "**/*.spec.ts" 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ServiceFromSignalR/Service/ClientApp/src/tsconfig.server.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "module": "commonjs" 5 | }, 6 | "angularCompilerOptions": { 7 | "entryModule": "app/app.server.module#AppServerModule" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ServiceFromSignalR/Service/Pages/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using ServiceFromSignalRViaFluentApi 2 | @namespace ServiceFromSignalRViaFluentApi.Pages 3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 4 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ServiceFromSignalR/Service/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ServiceFromSignalR/Service/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | }, 9 | "AllowedHosts": "*" 10 | } 11 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/ServiceFromSignalR/Service/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KY-Programming/generator/f452ea9490f0864b858eefcef5631ecc7edea30a/Examples/Angular/Fluent/ServiceFromSignalR/Service/wwwroot/favicon.ico -------------------------------------------------------------------------------- /Examples/Angular/Fluent/WithCustomHttpClient/Service/ClientApp/e2e/src/app.po.ts: -------------------------------------------------------------------------------- 1 | import { browser, by, element } from 'protractor'; 2 | 3 | export class AppPage { 4 | navigateTo() { 5 | return browser.get('/'); 6 | } 7 | 8 | getMainHeading() { 9 | return element(by.css('app-root h1')).getText(); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/WithCustomHttpClient/Service/ClientApp/e2e/tsconfig.e2e.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "module": "commonjs", 6 | "target": "es5", 7 | "types": [ 8 | "jasmine", 9 | "jasminewd2", 10 | "node" 11 | ] 12 | } 13 | } -------------------------------------------------------------------------------- /Examples/Angular/Fluent/WithCustomHttpClient/Service/ClientApp/src/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |
6 | 7 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/WithCustomHttpClient/Service/ClientApp/src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-root', 5 | templateUrl: './app.component.html' 6 | }) 7 | export class AppComponent { 8 | title = 'app'; 9 | } 10 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/WithCustomHttpClient/Service/ClientApp/src/app/counter/counter.component.html: -------------------------------------------------------------------------------- 1 |

Counter

2 | 3 |

This is a simple example of an Angular component.

4 | 5 |

Current count: {{ currentCount }}

6 | 7 | 8 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/WithCustomHttpClient/Service/ClientApp/src/app/home/home.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-home', 5 | templateUrl: './home.component.html', 6 | }) 7 | export class HomeComponent { 8 | } 9 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/WithCustomHttpClient/Service/ClientApp/src/assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KY-Programming/generator/f452ea9490f0864b858eefcef5631ecc7edea30a/Examples/Angular/Fluent/WithCustomHttpClient/Service/ClientApp/src/assets/.gitkeep -------------------------------------------------------------------------------- /Examples/Angular/Fluent/WithCustomHttpClient/Service/ClientApp/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/WithCustomHttpClient/Service/ClientApp/src/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "types": [] 6 | }, 7 | "exclude": [ 8 | "src/test.ts", 9 | "**/*.spec.ts" 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/WithCustomHttpClient/Service/ClientApp/src/tsconfig.server.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "module": "commonjs" 5 | }, 6 | "angularCompilerOptions": { 7 | "entryModule": "app/app.server.module#AppServerModule" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/WithCustomHttpClient/Service/Pages/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using WithCustomHttpClient 2 | @namespace WithCustomHttpClient.Pages 3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 4 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/WithCustomHttpClient/Service/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/WithCustomHttpClient/Service/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | }, 9 | "AllowedHosts": "*" 10 | } 11 | -------------------------------------------------------------------------------- /Examples/Angular/Fluent/WithCustomHttpClient/Service/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KY-Programming/generator/f452ea9490f0864b858eefcef5631ecc7edea30a/Examples/Angular/Fluent/WithCustomHttpClient/Service/wwwroot/favicon.ico -------------------------------------------------------------------------------- /Examples/Angular/build.cmd: -------------------------------------------------------------------------------- 1 | @title KY-Generator Examples Angular 2 | 3 | cd Annotation 4 | call build.cmd 5 | cd ../ 6 | 7 | cd Fluent 8 | call build.cmd 9 | cd ../ -------------------------------------------------------------------------------- /Examples/AspDotNet/WebApi.Attributes.Core/Models/Value.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Examples.AspDotNet.Models 2 | { 3 | [GenerateAngularModel("..\\..\\Angular\\src\\app\\models")] 4 | public class Value 5 | { 6 | public int Id { get; set; } 7 | public string Text { get; set; } 8 | } 9 | } -------------------------------------------------------------------------------- /Examples/AspDotNet/WebApi.Attributes.Core/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Debug", 5 | "System": "Information", 6 | "Microsoft": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Examples/AspDotNet/WebApi.Attributes.Core/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Warning" 5 | } 6 | }, 7 | "AllowedHosts": "*" 8 | } 9 | -------------------------------------------------------------------------------- /Examples/AspDotNet/WebApi.Attributes/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="KY.Generator.Examples.AspDotNet.WebApiApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /Examples/AspDotNet/WebApi.Attributes/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Http; 2 | 3 | namespace KY.Generator.Examples.AspDotNet 4 | { 5 | public class WebApiApplication : System.Web.HttpApplication 6 | { 7 | protected void Application_Start() 8 | { 9 | GlobalConfiguration.Configure(WebApiConfig.Register); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Examples/AspDotNet/WebApi.Attributes/Models/Value.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Examples.AspDotNet.Models 2 | { 3 | [GenerateAngularModel("..\\..\\Angular\\src\\app\\models")] 4 | public class Value 5 | { 6 | public int Id { get; set; } 7 | public string Text { get; set; } 8 | } 9 | } -------------------------------------------------------------------------------- /Examples/AspDotNet/WebApi.Core/Models/Value.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Examples.AspDotNet.Models 2 | { 3 | public class Value 4 | { 5 | public int Id { get; set; } 6 | public string Text { get; set; } 7 | } 8 | } -------------------------------------------------------------------------------- /Examples/AspDotNet/WebApi.Core/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Debug", 5 | "System": "Information", 6 | "Microsoft": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Examples/AspDotNet/WebApi.Core/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Warning" 5 | } 6 | }, 7 | "AllowedHosts": "*" 8 | } 9 | -------------------------------------------------------------------------------- /Examples/AspDotNet/WebApi/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="KY.Generator.Examples.AspDotNet.WebApiApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /Examples/AspDotNet/WebApi/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Http; 2 | 3 | namespace KY.Generator.Examples.AspDotNet 4 | { 5 | public class WebApiApplication : System.Web.HttpApplication 6 | { 7 | protected void Application_Start() 8 | { 9 | GlobalConfiguration.Configure(WebApiConfig.Register); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Examples/AspDotNet/WebApi/Models/Value.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Examples.AspDotNet.Models 2 | { 3 | public class Value 4 | { 5 | public int Id { get; set; } 6 | public string Text { get; set; } 7 | } 8 | } -------------------------------------------------------------------------------- /Examples/Json/JsonWithReader/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace JsonWithReader 4 | { 5 | class Program 6 | { 7 | static void Main(string[] args) 8 | { 9 | Console.WriteLine("Hello World!"); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Examples/Json/JsonWithReader/Source/complex.json: -------------------------------------------------------------------------------- 1 | { 2 | "stringArrayProperty": [ "One", "Two", "Three" ], 3 | "numberArrayProperty": [ 1, 2, 3 ], 4 | "objectArrayProperty": [ 5 | { "text": "One" }, 6 | { "text": "Two" } 7 | ], 8 | "mixedArrayProperty": [ 1, "Two", 3 ], 9 | "objectProperty": { 10 | "property": "works" 11 | } 12 | } -------------------------------------------------------------------------------- /Examples/Json/JsonWithReader/Source/simple.json: -------------------------------------------------------------------------------- 1 | { 2 | "stringProperty": "Test", 3 | "numberProperty": 123, 4 | "booleanProperty": true 5 | } -------------------------------------------------------------------------------- /Examples/Reflection/README.md: -------------------------------------------------------------------------------- 1 | # Reflection Examples 2 | -------------------------------------------------------------------------------- /Examples/Reflection/ReflectionFromAttributes/TypeToRead.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | namespace ReflectionFromAttributes 4 | { 5 | [Generate(OutputLanguage.TypeScript, "Output")] 6 | public class TypeToRead 7 | { 8 | public string StringProperty { get; set; } 9 | public int NumberProperty { get; set; } 10 | } 11 | } -------------------------------------------------------------------------------- /Examples/Reflection/ReflectionFromCore/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace ReflectionFromCore 4 | { 5 | class Program 6 | { 7 | static void Main(string[] args) 8 | { 9 | Console.WriteLine("Hello World!"); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Examples/Reflection/ReflectionFromCore/TypeToRead.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | namespace ReflectionFromCore 4 | { 5 | [GenerateAngularModel("Output")] 6 | public class TypeToRead 7 | { 8 | public string StringProperty { get; set; } 9 | public int NumberProperty { get; set; } 10 | } 11 | } -------------------------------------------------------------------------------- /Examples/Reflection/ReflectionFromExecutable/Program.cs: -------------------------------------------------------------------------------- 1 | // See https://aka.ms/new-console-template for more information 2 | 3 | Console.WriteLine("Hello, World!"); -------------------------------------------------------------------------------- /Examples/Reflection/ReflectionFromExecutable/TypeToRead.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | namespace ReflectionFromExecutable 4 | { 5 | [GenerateAngularModel("Output")] 6 | public class TypeToRead 7 | { 8 | public string StringProperty { get; set; } 9 | public int NumberProperty { get; set; } 10 | } 11 | } -------------------------------------------------------------------------------- /Examples/Reflection/ReflectionFromIndex/AnotherType.cs: -------------------------------------------------------------------------------- 1 | namespace ReflectionFromIndex 2 | { 3 | public class AnotherType 4 | { 5 | public string StringField; 6 | public int NumberField; 7 | } 8 | } -------------------------------------------------------------------------------- /Examples/Reflection/ReflectionFromIndex/IgnoredType.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | namespace ReflectionFromIndex 4 | { 5 | [GenerateIgnore] 6 | public class IgnoredType 7 | { } 8 | } -------------------------------------------------------------------------------- /Examples/Reflection/ReflectionFromIndex/Index.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | namespace ReflectionFromIndex 4 | { 5 | [GenerateIndex(OutputLanguage.TypeScript, "Output")] 6 | internal class Index 7 | { 8 | public TypeToRead type1; 9 | public AnotherType type2; 10 | public IgnoredType type3; 11 | } 12 | } -------------------------------------------------------------------------------- /Examples/Reflection/ReflectionFromIndex/TypeToRead.cs: -------------------------------------------------------------------------------- 1 | namespace ReflectionFromIndex 2 | { 3 | public class TypeToRead 4 | { 5 | public string StringProperty { get; set; } 6 | public int NumberProperty { get; set; } 7 | } 8 | } -------------------------------------------------------------------------------- /Examples/Reflection/ReflectionFromMultipleAssemblies/SecondAssembly/SecondAssembly.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netstandard2.0 5 | second-assembly 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Examples/Reflection/ReflectionFromMultipleAssemblies/SecondAssembly/SecondType.cs: -------------------------------------------------------------------------------- 1 | namespace SecondAssembly 2 | { 3 | public class SecondType 4 | { 5 | public string StringProperty { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Examples/Reflection/ReflectionFromNet5/TypeToRead.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | namespace ReflectionFromNet5 4 | { 5 | [Generate(OutputLanguage.TypeScript, "Output")] 6 | public class TypeToRead 7 | { 8 | public string StringProperty { get; set; } 9 | public int NumberProperty { get; set; } 10 | } 11 | } -------------------------------------------------------------------------------- /Examples/Reflection/ReflectionFromStandard/TypeToRead.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | namespace ReflectionFromStandard 4 | { 5 | [GenerateAngularModel("Output")] 6 | public class TypeToRead 7 | { 8 | public string StringProperty { get; set; } 9 | public int NumberProperty { get; set; } 10 | } 11 | } -------------------------------------------------------------------------------- /Examples/Reflection/ReflectionIgnoreAttribute/EnumToIgnore.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | namespace ReflectionIgnoreAttribute 4 | { 5 | [GenerateIgnore] 6 | public enum EnumToIgnore 7 | { 8 | None, 9 | Any 10 | } 11 | } -------------------------------------------------------------------------------- /Examples/Reflection/ReflectionIgnoreAttribute/TypeToIgnore.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | namespace ReflectionIgnoreAttribute 4 | { 5 | [GenerateIgnore] 6 | public class TypeToIgnore 7 | { 8 | public string StringProperty { get; set; } 9 | } 10 | } -------------------------------------------------------------------------------- /Examples/Reflection/ReflectionReturnTypeAttribute/OtherSubType.cs: -------------------------------------------------------------------------------- 1 | namespace ReflectionReturnTypeAttribute; 2 | 3 | public class OtherSubType 4 | { 5 | public string OtherStringProperty { get; set; } 6 | } -------------------------------------------------------------------------------- /Examples/Reflection/ReflectionReturnTypeAttribute/SubType.cs: -------------------------------------------------------------------------------- 1 | namespace ReflectionReturnTypeAttribute; 2 | 3 | public class SubType 4 | { 5 | public string StringProperty { get; set; } 6 | } -------------------------------------------------------------------------------- /Examples/Reflection/ReflectionX86/TypeToRead.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | namespace ReflectionX86 4 | { 5 | [Generate] 6 | public class TypeToRead 7 | { 8 | public string StringProperty { get; set; } 9 | public int NumberProperty { get; set; } 10 | } 11 | } -------------------------------------------------------------------------------- /Examples/Sqlite/FromDatabase/test.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KY-Programming/generator/f452ea9490f0864b858eefcef5631ecc7edea30a/Examples/Sqlite/FromDatabase/test.db -------------------------------------------------------------------------------- /Examples/Tsql/Tsql/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Tsql 4 | { 5 | class Program 6 | { 7 | static void Main(string[] args) 8 | { 9 | Console.WriteLine("Hello World!"); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Examples/build.cmd: -------------------------------------------------------------------------------- 1 | @title KY-Generator Examples 2 | 3 | cd Angular 4 | start build.cmd 5 | cd ../ 6 | 7 | cd Reflection 8 | start build.cmd 9 | cd ../ 10 | 11 | cd Json 12 | call build.cmd 13 | cd ../ 14 | 15 | cd Sqlite 16 | call build.cmd 17 | cd ../ 18 | 19 | PAUSE -------------------------------------------------------------------------------- /Fluent/Commands/FluentCommandParameters.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Command; 2 | 3 | namespace KY.Generator.Commands 4 | { 5 | internal class FluentCommandParameters : GeneratorCommandParameters 6 | { } 7 | } 8 | -------------------------------------------------------------------------------- /Fluent/Syntax/IExecutableSyntax.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using KY.Generator.Command; 3 | 4 | namespace KY.Generator.Syntax 5 | { 6 | public interface IExecutableSyntax 7 | { 8 | List Commands { get; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Fluent/Syntax/IReadFluentSyntax.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Syntax 2 | { 3 | public interface IReadFluentSyntax 4 | { } 5 | } 6 | -------------------------------------------------------------------------------- /Fluent/Syntax/IReadFluentSyntaxInternal.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Syntax 2 | { 3 | public interface IReadFluentSyntaxInternal : IReadFluentSyntax, IFluentInternalSyntax, ISwitchToWriteFluentSyntax 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Fluent/Syntax/IWriteFluentSyntaxInternal.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Syntax 2 | { 3 | public interface IWriteFluentSyntaxInternal : IWriteFluentSyntax, IFluentInternalSyntax 4 | { } 5 | } -------------------------------------------------------------------------------- /Json.Tests/Resources/Alllowerobject.cs.result: -------------------------------------------------------------------------------- 1 | // ReSharper disable All 2 | 3 | namespace KY.Generator.Examples.Json 4 | { 5 | public partial class Alllowerobject 6 | { 7 | public int Prop1 { get; set; } 8 | } 9 | } -------------------------------------------------------------------------------- /Json.Tests/Resources/Allupperobject.cs.result: -------------------------------------------------------------------------------- 1 | // ReSharper disable All 2 | 3 | namespace KY.Generator.Examples.Json 4 | { 5 | public partial class Allupperobject 6 | { 7 | public int Prop1 { get; set; } 8 | } 9 | } -------------------------------------------------------------------------------- /Json.Tests/Resources/ObjectArrayProperty.cs.result: -------------------------------------------------------------------------------- 1 | // ReSharper disable All 2 | 3 | namespace KY.Generator.Examples.Json 4 | { 5 | public partial class ObjectArrayProperty 6 | { 7 | public string Text { get; set; } 8 | } 9 | } -------------------------------------------------------------------------------- /Json.Tests/Resources/ObjectProperty.cs.result: -------------------------------------------------------------------------------- 1 | // ReSharper disable All 2 | 3 | namespace KY.Generator.Examples.Json 4 | { 5 | public partial class ObjectProperty 6 | { 7 | public string Property { get; set; } 8 | } 9 | } -------------------------------------------------------------------------------- /Json.Tests/Resources/Simple.cs.result: -------------------------------------------------------------------------------- 1 | // ReSharper disable All 2 | 3 | namespace KY.Generator.Examples.Json 4 | { 5 | public partial class Simple 6 | { 7 | public string StringProperty { get; set; } 8 | public int NumberProperty { get; set; } 9 | public bool BooleanProperty { get; set; } 10 | } 11 | } -------------------------------------------------------------------------------- /Json.Tests/Resources/SimpleWithoutReader.cs.result: -------------------------------------------------------------------------------- 1 | // ReSharper disable All 2 | 3 | namespace KY.Generator.Examples.Json 4 | { 5 | public partial class SimpleWithoutReader 6 | { 7 | public string StringProperty { get; set; } 8 | public int NumberProperty { get; set; } 9 | public bool BooleanProperty { get; set; } 10 | } 11 | } -------------------------------------------------------------------------------- /Json.Tests/Resources/complex.json: -------------------------------------------------------------------------------- 1 | { 2 | "stringArrayProperty": [ "One", "Two", "Three" ], 3 | "numberArrayProperty": [ 1, 2, 3 ], 4 | "objectArrayProperty": [ 5 | { "text": "One" }, 6 | { "text": "Two" } 7 | ], 8 | "mixedArrayProperty": [ 1, "Two", 3 ], 9 | "objectProperty": { 10 | "property": "works" 11 | } 12 | } -------------------------------------------------------------------------------- /Json.Tests/Resources/formatNames.json: -------------------------------------------------------------------------------- 1 | { 2 | "alllower": "1", 3 | "ALLUPPER": "1", 4 | "camelCase": 1, 5 | "PascalCase": 1, 6 | "Title Case": 1, 7 | "snake_case": 1, 8 | "UPPER_SNAKE_CASE": 1, 9 | "Darwin_Case": 1, 10 | "kebab-case": 1, 11 | "alllowerobject": { 12 | "prop1": 1 13 | }, 14 | "ALLUPPEROBJECT": { 15 | "prop1": 1 16 | } 17 | } -------------------------------------------------------------------------------- /Json.Tests/Resources/simple.json: -------------------------------------------------------------------------------- 1 | { 2 | "stringProperty": "Test", 3 | "numberProperty": 123, 4 | "booleanProperty": true 5 | } -------------------------------------------------------------------------------- /Json/Commands/JsonReadCommandParameters.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Command; 2 | 3 | namespace KY.Generator.Json.Commands 4 | { 5 | public class JsonReadCommandParameters : GeneratorCommandParameters 6 | { 7 | } 8 | } -------------------------------------------------------------------------------- /Json/Configurations/JsonReadConfiguration.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Json.Configurations 2 | { 3 | internal class JsonReadConfiguration 4 | { 5 | public string Source { get; set; } 6 | public string BasePath { get; set; } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Json/Fluent/IJsonReadSyntax.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator 2 | { 3 | public interface IJsonReadSyntax 4 | { 5 | IJsonReadSyntax FromFile(string relativePath); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Json/Fluent/IJsonWriteModelOrReaderSyntax.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator 2 | { 3 | public interface IJsonWriteModelOrReaderSyntax : IJsonWriteModelSyntax 4 | { 5 | IJsonWriteModelSyntax WithoutReader(); 6 | } 7 | } -------------------------------------------------------------------------------- /Json/Fluent/IJsonWriteModelSyntax.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator 2 | { 3 | public interface IJsonWriteModelSyntax 4 | { 5 | IJsonWriteModelOrReaderSyntax FieldsToProperties(); 6 | IJsonWriteModelOrReaderSyntax PropertiesToFields(); 7 | } 8 | } -------------------------------------------------------------------------------- /Json/Fluent/IJsonWriteSyntax.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator 2 | { 3 | public interface IJsonWriteSyntax 4 | { 5 | IJsonWriteModelOrReaderSyntax Model(string relativePath, string name, string nameSpace); 6 | } 7 | } -------------------------------------------------------------------------------- /Json/Language/JsonLanguage.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Languages; 2 | 3 | namespace KY.Generator.Json.Language 4 | { 5 | public class JsonLanguage : EmptyLanguage 6 | { 7 | public static JsonLanguage Instance { get; } = new JsonLanguage(); 8 | 9 | public override string Name => "Json"; 10 | 11 | private JsonLanguage() 12 | { } 13 | } 14 | } -------------------------------------------------------------------------------- /Json/Transfers/JsonModelTransferObject.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Transfer; 2 | 3 | namespace KY.Generator.Json.Transfers 4 | { 5 | public class JsonModelTransferObject : ModelTransferObject 6 | { } 7 | } -------------------------------------------------------------------------------- /Main.Legacy/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /OData.Tests/Resources/address.ts.result: -------------------------------------------------------------------------------- 1 | // tslint:disable 2 | 3 | export class Address { 4 | public id: number; 5 | public zipCode: number; 6 | public city: string; 7 | public street: string; 8 | 9 | public constructor(init: Partial
= undefined) { 10 | Object.assign(this, init); 11 | } 12 | } -------------------------------------------------------------------------------- /OData.Tests/Resources/user.ts.result: -------------------------------------------------------------------------------- 1 | // tslint:disable 2 | 3 | import { Address } from "./address"; 4 | 5 | export class User { 6 | public id: number; 7 | public name: string; 8 | public email: string; 9 | public address: Address; 10 | 11 | public constructor(init: Partial = undefined) { 12 | Object.assign(this, init); 13 | } 14 | } -------------------------------------------------------------------------------- /Reflection.Tests/Data/BaseClassAndOneInterfaceType.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Reflection.Tests 2 | { 3 | public class BaseClassAndOneInterfaceType : OneInterfaceType, ISecond 4 | { 5 | public string SecondProperty { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Reflection.Tests/Data/BaseClassAndTwoInterfacesType.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Reflection.Tests 2 | { 3 | public class BaseClassAndTwoInterfacesType : OneInterfaceType, ISecond, IThird 4 | { 5 | public string SecondProperty { get; set; } 6 | public string ThirdProperty { get; set; } 7 | } 8 | } -------------------------------------------------------------------------------- /Reflection.Tests/Data/BasedOnCustomGenericString.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Reflection.Tests 2 | { 3 | public class BasedOnCustomGenericString : CustomGeneric 4 | { 5 | 6 | } 7 | } -------------------------------------------------------------------------------- /Reflection.Tests/Data/BasedOnCustomGenericSubtype.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Reflection.Tests 2 | { 3 | public class BasedOnCustomGenericSubtype : CustomGeneric 4 | { 5 | 6 | } 7 | } -------------------------------------------------------------------------------- /Reflection.Tests/Data/BasedOnStringList.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace KY.Generator.Reflection.Tests 4 | { 5 | public class BasedOnStringList : List 6 | { 7 | 8 | } 9 | } -------------------------------------------------------------------------------- /Reflection.Tests/Data/BasedOnSubtypeList.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace KY.Generator.Reflection.Tests 4 | { 5 | public class BasedOnSubtypeList : List 6 | { 7 | 8 | } 9 | } -------------------------------------------------------------------------------- /Reflection.Tests/Data/CustomGeneric.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace KY.Generator.Reflection.Tests 6 | { 7 | public class CustomGeneric 8 | { 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Reflection.Tests/Data/CustomGenericStringProperty.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Reflection.Tests 2 | { 3 | public class CustomGenericStringProperty 4 | { 5 | public CustomGeneric Property { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Reflection.Tests/Data/CustomGenericSubtypeProperty.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Reflection.Tests 2 | { 3 | public class CustomGenericSubtypeProperty 4 | { 5 | public CustomGeneric Property { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Reflection.Tests/Data/CustomTypeInArray.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Text; 3 | 4 | namespace KY.Generator.Reflection.Tests 5 | { 6 | public class CustomTypeInArray 7 | { 8 | public SubType[] Array { get; set; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Reflection.Tests/Data/CustomTypeInList.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace KY.Generator.Reflection.Tests 4 | { 5 | public class CustomTypeInList 6 | { 7 | public List List { get; set; } 8 | } 9 | } -------------------------------------------------------------------------------- /Reflection.Tests/Data/ExportedPrimitiveType.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Reflection.Tests 2 | { 3 | public class ExportedPrimitiveType 4 | { 5 | public GenericType Value { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Reflection.Tests/Data/ExportedType.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace KY.Generator.Reflection.Tests 4 | { 5 | public class ExportedType 6 | { 7 | public List> Listing { get; set; } 8 | } 9 | } -------------------------------------------------------------------------------- /Reflection.Tests/Data/GenericType.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Reflection.Tests 2 | { 3 | public class GenericType 4 | { 5 | public int Value1 { get; set; } 6 | 7 | public T GenericValue { get; set; } 8 | } 9 | } -------------------------------------------------------------------------------- /Reflection.Tests/Data/IFirst.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Reflection.Tests 2 | { 3 | public interface IFirst 4 | { 5 | string FirstProperty { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Reflection.Tests/Data/IInheritFirst.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Reflection.Tests 2 | { 3 | public interface IInheritFirst : IFirst 4 | { 5 | string FirstInheritedProperty { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Reflection.Tests/Data/ISecond.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Reflection.Tests 2 | { 3 | public interface ISecond 4 | { 5 | string SecondProperty { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Reflection.Tests/Data/IThird.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Reflection.Tests 2 | { 3 | public interface IThird 4 | { 5 | string ThirdProperty { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Reflection.Tests/Data/InheritInterfaceType.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Reflection.Tests 2 | { 3 | public class InheritInterfaceType : IInheritFirst 4 | { 5 | public string FirstProperty { get; set; } 6 | public string FirstInheritedProperty { get; set; } 7 | } 8 | } -------------------------------------------------------------------------------- /Reflection.Tests/Data/InnerCustomType.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Reflection.Tests 2 | { 3 | public class InnerCustomType 4 | { 5 | public int CustomValue1 { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Reflection.Tests/Data/OneField.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Reflection.Tests 2 | { 3 | internal class OneField 4 | { 5 | #pragma warning disable 649 6 | public string Field1; 7 | #pragma warning restore 649 8 | } 9 | } -------------------------------------------------------------------------------- /Reflection.Tests/Data/OneInterfaceType.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Reflection.Tests 2 | { 3 | public class OneInterfaceType : IFirst 4 | { 5 | public string FirstProperty { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Reflection.Tests/Data/OneProperty.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Reflection.Tests 2 | { 3 | internal class OneProperty 4 | { 5 | public string Prop1 { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Reflection.Tests/Data/OnePropertyWithCustomType.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Reflection.Tests 2 | { 3 | internal class OnePropertyWithCustomType 4 | { 5 | public OneProperty Prop2 { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Reflection.Tests/Data/RecursiveType.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Reflection.Tests 2 | { 3 | internal class RecursiveType 4 | { 5 | public RecursiveType Parent { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Reflection.Tests/Data/TwoInterfacesType.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Reflection.Tests 2 | { 3 | public class TwoInterfacesType : IFirst, ISecond 4 | { 5 | public string FirstProperty { get; set; } 6 | public string SecondProperty { get; set; } 7 | } 8 | } -------------------------------------------------------------------------------- /Reflection.Tests/Resources/reflection.generator.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 2, 3 | "generate": [ 4 | { 5 | "read": "reflection", 6 | "assembly": "KY.Generator.Test.dll", 7 | "namespace": "KY.Generator.Test", 8 | "name": "TestClass" 9 | }, 10 | { 11 | "write": "reflection" 12 | } 13 | ] 14 | } -------------------------------------------------------------------------------- /Reflection.Tests/Results/base-class-and-one-interface-type.ts.result: -------------------------------------------------------------------------------- 1 | // tslint:disable 2 | 3 | import { OneInterfaceType } from "./one-interface-type"; 4 | import { ISecond } from "./second.interface"; 5 | 6 | export class BaseClassAndOneInterfaceType extends OneInterfaceType implements ISecond { 7 | public secondProperty: string; 8 | } -------------------------------------------------------------------------------- /Reflection.Tests/Results/exported-primitive-type.ts.result: -------------------------------------------------------------------------------- 1 | // tslint:disable 2 | 3 | import { GenericType } from "./generic-type"; 4 | 5 | export class ExportedPrimitiveType { 6 | public value: GenericType; 7 | } -------------------------------------------------------------------------------- /Reflection.Tests/Results/exported-type.ts.result: -------------------------------------------------------------------------------- 1 | // tslint:disable 2 | 3 | import { GenericType } from "./generic-type"; 4 | import { InnerCustomType } from "./inner-custom-type"; 5 | 6 | export class ExportedType { 7 | public listing: GenericType[]; 8 | } -------------------------------------------------------------------------------- /Reflection.Tests/Results/first.interface.ts.result: -------------------------------------------------------------------------------- 1 | // tslint:disable 2 | 3 | export interface IFirst { 4 | firstProperty: string; 5 | } -------------------------------------------------------------------------------- /Reflection.Tests/Results/generic-type.ts.result: -------------------------------------------------------------------------------- 1 | // tslint:disable 2 | 3 | export class GenericType { 4 | public value1: number; 5 | public genericValue: T; 6 | } -------------------------------------------------------------------------------- /Reflection.Tests/Results/inherit-first.interface.ts.result: -------------------------------------------------------------------------------- 1 | // tslint:disable 2 | 3 | import { IFirst } from "./first.interface"; 4 | 5 | export interface IInheritFirst extends IFirst { 6 | firstInheritedProperty: string; 7 | } -------------------------------------------------------------------------------- /Reflection.Tests/Results/inherit-interface-type.ts.result: -------------------------------------------------------------------------------- 1 | // tslint:disable 2 | 3 | import { IInheritFirst } from "./inherit-first.interface"; 4 | 5 | export class InheritInterfaceType implements IInheritFirst { 6 | public firstProperty: string; 7 | public firstInheritedProperty: string; 8 | } -------------------------------------------------------------------------------- /Reflection.Tests/Results/inner-custom-type.ts.result: -------------------------------------------------------------------------------- 1 | // tslint:disable 2 | 3 | export class InnerCustomType { 4 | public customValue1: number; 5 | } -------------------------------------------------------------------------------- /Reflection.Tests/Results/one-interface-type.ts.result: -------------------------------------------------------------------------------- 1 | // tslint:disable 2 | 3 | import { IFirst } from "./first.interface"; 4 | 5 | export class OneInterfaceType implements IFirst { 6 | public firstProperty: string; 7 | } -------------------------------------------------------------------------------- /Reflection.Tests/Results/second.interface.ts.result: -------------------------------------------------------------------------------- 1 | // tslint:disable 2 | 3 | export interface ISecond { 4 | secondProperty: string; 5 | } -------------------------------------------------------------------------------- /Reflection.Tests/Results/subtype.result: -------------------------------------------------------------------------------- 1 | // tslint:disable 2 | 3 | export class SubType { 4 | public property: string; 5 | } -------------------------------------------------------------------------------- /Reflection.Tests/Results/third.interface.ts.result: -------------------------------------------------------------------------------- 1 | // tslint:disable 2 | 3 | export interface IThird { 4 | thirdProperty: string; 5 | } -------------------------------------------------------------------------------- /Reflection.Tests/Results/two-interfaces-type.ts.result: -------------------------------------------------------------------------------- 1 | // tslint:disable 2 | 3 | import { IFirst } from "./first.interface"; 4 | import { ISecond } from "./second.interface"; 5 | 6 | export class TwoInterfacesType implements IFirst, ISecond { 7 | public firstProperty: string; 8 | public secondProperty: string; 9 | } -------------------------------------------------------------------------------- /Reflection/Commands/AnnotationCommandParameters.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Command; 2 | 3 | namespace KY.Generator.Reflection.Commands 4 | { 5 | public class AnnotationCommandParameters : GeneratorCommandParameters 6 | { 7 | 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Reflection/Commands/ReflectionWriteCommandParameters.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Command; 2 | 3 | namespace KY.Generator.Reflection.Commands 4 | { 5 | internal class ReflectionWriteCommandParameters : GeneratorCommandParameters 6 | { 7 | public string Name { get; set; } 8 | public string Namespace { get; set; } 9 | } 10 | } -------------------------------------------------------------------------------- /Reflection/Configurations/ReflectionReadConfiguration.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Reflection.Configurations 2 | { 3 | public class ReflectionReadConfiguration 4 | { 5 | public string Assembly { get; set; } 6 | public string Name { get; set; } 7 | public string Namespace { get; set; } 8 | public bool OnlySubTypes { get; set; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Reflection/Fluent/IReflectionWriteSyntax.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Reflection.Fluent 2 | { 3 | public interface IReflectionWriteSyntax 4 | { 5 | IReflectionWriteSyntax PropertiesToFields(); 6 | IReflectionWriteSyntax FieldsToProperties(); 7 | IReflectionWriteSyntax Models(string relativePath); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Sqlite/Fluent/ISqliteFromDatabaseOrReadSyntax.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Sqlite.Fluent 2 | { 3 | public interface ISqliteFromDatabaseOrReadSyntax : ISqliteFromDatabaseSyntax, ISqliteReadSyntax 4 | { 5 | ISqliteFromDatabaseOrReadSyntax UseTable(string tableName); 6 | ISqliteFromDatabaseOrReadSyntax UseAll(); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Sqlite/Fluent/ISqliteFromDatabaseSyntax.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Sqlite.Fluent 2 | { 3 | public interface ISqliteFromDatabaseSyntax 4 | { } 5 | } -------------------------------------------------------------------------------- /Sqlite/Fluent/ISqliteReadSyntax.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace KY.Generator.Sqlite.Fluent 4 | { 5 | public interface ISqliteReadSyntax 6 | { 7 | ISqliteFromDatabaseOrReadSyntax UseConnectionString(string connectionString); 8 | ISqliteFromDatabaseOrReadSyntax UseFile(string file); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Sqlite/Parsers/ISqliteStatement.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Sqlite.Parsers 2 | { 3 | public interface ISqliteStatement 4 | { } 5 | } -------------------------------------------------------------------------------- /Sqlite/Transfer/SqliteFieldTransferObject.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Transfer; 2 | 3 | namespace KY.Generator.Sqlite.Transfer 4 | { 5 | public class SqliteFieldTransferObject : FieldTransferObject 6 | { 7 | public SqliteFieldTransferObject(FieldTransferObject field) 8 | : base(field) 9 | { } 10 | } 11 | } -------------------------------------------------------------------------------- /Tests/AnnotationAsync/AngularAsync.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | namespace AnnotationAsync 4 | { 5 | [GenerateAngularModel("Output")] 6 | [GenerateAsync] 7 | public class AngularAsync 8 | { 9 | public string Property { get; set; } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Tests/AnnotationAsync/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | [assembly:GenerateNoHeader] 4 | -------------------------------------------------------------------------------- /Tests/AnnotationAsync/NotAsyncType.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | namespace AnnotationAsync 4 | { 5 | [Generate(OutputLanguage.TypeScript, "Output")] 6 | public class NotAsyncType 7 | { 8 | public string StringProperty { get; set; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Tests/AnnotationAsync/Output/angular-async.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class AngularAsync { 5 | public property: string; 6 | 7 | public constructor(init?: Partial) { 8 | Object.assign(this, init); 9 | } 10 | } 11 | 12 | // outputid:84eb1514-1fc9-499f-924d-4a93a076f40a 13 | -------------------------------------------------------------------------------- /Tests/AnnotationAsync/Output/not-async-type.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class NotAsyncType { 5 | public stringProperty: string; 6 | } 7 | 8 | // outputid:84eb1514-1fc9-499f-924d-4a93a076f40a 9 | -------------------------------------------------------------------------------- /Tests/AnnotationAsync/Output/sub-type.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class SubType { 5 | public property: string; 6 | } 7 | 8 | // outputid:84eb1514-1fc9-499f-924d-4a93a076f40a 9 | -------------------------------------------------------------------------------- /Tests/AnnotationAsync/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace AnnotationAsync 4 | { 5 | class Program 6 | { 7 | static void Main(string[] args) 8 | { 9 | Console.WriteLine("Hello World!"); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Tests/AnnotationAsyncAssembly/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | [assembly:GenerateAsync] 4 | [assembly:GenerateNoHeader] 5 | -------------------------------------------------------------------------------- /Tests/AnnotationAsyncAssembly/Class1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using KY.Generator; 3 | 4 | namespace AnnotationAsyncAssembly 5 | { 6 | [Generate(OutputLanguage.TypeScript, "Output")] 7 | public class Class1 8 | { 9 | public string StringProperty { get; set; } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Tests/AnnotationAsyncAssembly/Class2.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | namespace AnnotationAsyncAssembly 4 | { 5 | [Generate(OutputLanguage.TypeScript, "Output")] 6 | public class Class2 7 | { 8 | public string StringProperty { get; set; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Tests/AnnotationAsyncAssembly/Output/class-1.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class Class1 { 5 | public stringProperty?: string; 6 | } 7 | 8 | // outputid:01f469b8-5361-4a82-8512-fa7fefe14fc4 9 | -------------------------------------------------------------------------------- /Tests/AnnotationAsyncAssembly/Output/class-2.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class Class2 { 5 | public stringProperty?: string; 6 | } 7 | 8 | // outputid:01f469b8-5361-4a82-8512-fa7fefe14fc4 9 | -------------------------------------------------------------------------------- /Tests/AnnotationInNestedClass/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | [assembly:GenerateNoHeader] 4 | -------------------------------------------------------------------------------- /Tests/AnnotationInNestedClass/Class1.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | namespace AnnotationInNestedClass 4 | { 5 | public class Class1 6 | { 7 | [Generate(OutputLanguage.TypeScript, "Output")] 8 | public class Class2 9 | { } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Tests/AnnotationInNestedClass/Output/class-2.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class Class2 { 5 | } 6 | 7 | // outputid:8a7b8713-4f4f-4960-99ff-a4d8232036e0 8 | -------------------------------------------------------------------------------- /Tests/AnnotationsWithMultipleOutputs/FirstType.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | namespace AnnotationsWithMultipleOutputs 4 | { 5 | [GenerateAngularModel("Output\\First")] 6 | [GenerateNoHeader] 7 | public class FirstType 8 | { 9 | public string StringProperty { get; set; } 10 | public SubType SubTypeProperty { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Tests/AnnotationsWithMultipleOutputs/Output/First/index.ts: -------------------------------------------------------------------------------- 1 |  2 | export * from "./first-type"; 3 | export * from "./sub-type"; 4 | 5 | -------------------------------------------------------------------------------- /Tests/AnnotationsWithMultipleOutputs/Output/First/sub-type.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class SubType { 5 | public stringProperty?: string; 6 | 7 | public constructor(init?: Partial) { 8 | Object.assign(this, init); 9 | } 10 | } 11 | 12 | // outputid:352b1947-a770-4737-be18-608a78c130ad 13 | -------------------------------------------------------------------------------- /Tests/AnnotationsWithMultipleOutputs/Output/Second/index.ts: -------------------------------------------------------------------------------- 1 |  2 | export * from "./second-type"; 3 | export * from "./sub-type"; 4 | 5 | -------------------------------------------------------------------------------- /Tests/AnnotationsWithMultipleOutputs/Output/Second/sub-type.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class SubType { 5 | public stringProperty?: string; 6 | 7 | public constructor(init?: Partial) { 8 | Object.assign(this, init); 9 | } 10 | } 11 | 12 | // outputid:352b1947-a770-4737-be18-608a78c130ad 13 | -------------------------------------------------------------------------------- /Tests/AnnotationsWithMultipleOutputs/Output/Third/third-type.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class ThirdType { 5 | public stringProperty?: string; 6 | 7 | public constructor(init?: Partial) { 8 | Object.assign(this, init); 9 | } 10 | } 11 | 12 | // outputid:352b1947-a770-4737-be18-608a78c130ad 13 | -------------------------------------------------------------------------------- /Tests/AnnotationsWithMultipleOutputs/SecondType.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | namespace AnnotationsWithMultipleOutputs 4 | { 5 | [GenerateAngularModel("Output\\Second")] 6 | [GenerateNoHeader] 7 | public class SecondType 8 | { 9 | public string StringProperty { get; set; } 10 | public SubType SubTypeProperty { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Tests/AnnotationsWithMultipleOutputs/SubType.cs: -------------------------------------------------------------------------------- 1 | namespace AnnotationsWithMultipleOutputs 2 | { 3 | public class SubType 4 | { 5 | public string StringProperty { get; set; } 6 | 7 | } 8 | } -------------------------------------------------------------------------------- /Tests/AnnotationsWithMultipleOutputs/ThirdType.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | namespace AnnotationsWithMultipleOutputs 4 | { 5 | [GenerateAngularModel("Output\\Third")] 6 | [GenerateNoHeader] 7 | public class ThirdType 8 | { 9 | public string StringProperty { get; set; } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Tests/Caseing.Generator/Output/case-me.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class CaseMe { 5 | public stringProperty?: string; 6 | public s1: string; 7 | 8 | public constructor(init?: Partial) { 9 | Object.assign(this, init); 10 | } 11 | } 12 | 13 | // outputid:f7601c4b-055c-4bd5-a087-b514d1dde023 14 | -------------------------------------------------------------------------------- /Tests/Caseing.Generator/Output/index.ts: -------------------------------------------------------------------------------- 1 |  2 | export * from "./case-me"; 3 | export * from "./keep-my-case"; 4 | export * from "./mixed-caseing"; 5 | 6 | -------------------------------------------------------------------------------- /Tests/Caseing/CaseMe.cs: -------------------------------------------------------------------------------- 1 | namespace Caseing 2 | { 3 | public class CaseMe 4 | { 5 | public string StringProperty { get; set; } 6 | public string S1 { get; set; } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Tests/Caseing/Caseing.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Tests/Caseing/KeepMyCase.cs: -------------------------------------------------------------------------------- 1 | namespace Caseing 2 | { 3 | public class KeepMyCase 4 | { 5 | public string StringProperty { get; set; } 6 | public int Number_Property { get; set; } 7 | } 8 | } -------------------------------------------------------------------------------- /Tests/Caseing/MixedCaseing.cs: -------------------------------------------------------------------------------- 1 | namespace Caseing 2 | { 3 | public class MixedCaseing 4 | { 5 | public CaseMe CaseMe { get; set; } 6 | public KeepMyCase KeepMyCase { get; set; } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Tests/Derive/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | [assembly:GenerateNoHeader] 4 | [assembly:GenerateModelOutput("Output")] 5 | -------------------------------------------------------------------------------- /Tests/Derive/Output/abstract-type.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export abstract class AbstractType { 5 | public abstractStringProperty?: string; 6 | } 7 | 8 | // outputid:e818f5ca-e427-4c1c-baf2-38476bfa9665 9 | -------------------------------------------------------------------------------- /Tests/Derive/Output/base-class.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class BaseClass { 5 | public newStringProperty?: string; 6 | public virtualStringProperty?: string; 7 | 8 | public constructor(init?: Partial) { 9 | Object.assign(this, init); 10 | } 11 | } 12 | 13 | // outputid:e818f5ca-e427-4c1c-baf2-38476bfa9665 14 | -------------------------------------------------------------------------------- /Tests/Derive/Output/base-interface.interface.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export interface IBaseInterface { 5 | stringProperty?: string; 6 | } 7 | 8 | // outputid:e818f5ca-e427-4c1c-baf2-38476bfa9665 9 | -------------------------------------------------------------------------------- /Tests/Derive/Output/derive-from-interface-prefer-interface.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | import { IBaseInterface } from "./base-interface.interface"; 5 | 6 | export interface DeriveFromInterfacePreferInterface extends IBaseInterface { 7 | stringProperty?: string | undefined; 8 | } 9 | 10 | // outputid:e818f5ca-e427-4c1c-baf2-38476bfa9665 11 | -------------------------------------------------------------------------------- /Tests/Derive/Output/derived-from-abstract-class-prefer-interface.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | import { AbstractType } from "./abstract-type"; 5 | 6 | export interface DerivedFromAbstractClassPreferInterface extends AbstractType { 7 | stringProperty?: string | undefined; 8 | } 9 | 10 | // outputid:e818f5ca-e427-4c1c-baf2-38476bfa9665 11 | -------------------------------------------------------------------------------- /Tests/Derive/Output/derived-from-class-prefer-interface.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | import { BaseClass } from "./base-class"; 5 | 6 | export interface DerivedFromClassPreferInterface extends BaseClass { 7 | stringProperty?: string | undefined; 8 | } 9 | 10 | // outputid:e818f5ca-e427-4c1c-baf2-38476bfa9665 11 | -------------------------------------------------------------------------------- /Tests/Fluent/Fluent.Generator/Output/Models/edge-case-1-sub-type.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class EdgeCase1SubType { 5 | public property?: string; 6 | 7 | public constructor(init?: Partial) { 8 | Object.assign(this, init); 9 | } 10 | } 11 | 12 | // outputid:f32fd57a-e5ce-4ae5-97bc-bbca02f65904 13 | -------------------------------------------------------------------------------- /Tests/Fluent/Fluent.Generator/Output/Models/generic-interface-with-non-generic-base.interface.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | import { IInterface } from "./interface.interface"; 5 | 6 | export interface IGenericInterfaceWithNonGenericBase extends IInterface { 7 | genericProperty?: T; 8 | } 9 | 10 | // outputid:f32fd57a-e5ce-4ae5-97bc-bbca02f65904 11 | -------------------------------------------------------------------------------- /Tests/Fluent/Fluent.Generator/Output/Models/generic-interface.interface.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export interface IGenericInterface { 5 | property?: T; 6 | } 7 | 8 | // outputid:f32fd57a-e5ce-4ae5-97bc-bbca02f65904 9 | -------------------------------------------------------------------------------- /Tests/Fluent/Fluent.Generator/Output/Models/interface-generic.interface.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export interface IInterfaceGeneric { 5 | property?: T; 6 | } 7 | 8 | // outputid:f32fd57a-e5ce-4ae5-97bc-bbca02f65904 9 | -------------------------------------------------------------------------------- /Tests/Fluent/Fluent.Generator/Output/Models/interface.interface.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export interface IInterface { 5 | property?: string; 6 | } 7 | 8 | // outputid:f32fd57a-e5ce-4ae5-97bc-bbca02f65904 9 | -------------------------------------------------------------------------------- /Tests/Fluent/Fluent.Generator/Output/Models/sub-type.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class SubType { 5 | public property?: string; 6 | 7 | public constructor(init?: Partial) { 8 | Object.assign(this, init); 9 | } 10 | } 11 | 12 | // outputid:f32fd57a-e5ce-4ae5-97bc-bbca02f65904 13 | -------------------------------------------------------------------------------- /Tests/Fluent/Fluent.Generator/Output/Models/type-with-ignored-base.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class TypeWithIgnoredBase { 5 | public property?: string; 6 | 7 | public constructor(init?: Partial) { 8 | Object.assign(this, init); 9 | } 10 | } 11 | 12 | // outputid:f32fd57a-e5ce-4ae5-97bc-bbca02f65904 13 | -------------------------------------------------------------------------------- /Tests/Fluent/Fluent/Fluent.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Tests/Fluent/Fluent/IGenericInterface.cs: -------------------------------------------------------------------------------- 1 | namespace Types 2 | { 3 | public interface IGenericInterface 4 | { 5 | public T Property { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Tests/Fluent/Fluent/IGenericInterfaceWithNonGenericBase.cs: -------------------------------------------------------------------------------- 1 | namespace Types 2 | { 3 | public interface IGenericInterfaceWithNonGenericBase : IInterface 4 | { 5 | public T GenericProperty { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Tests/Fluent/Fluent/IIgnoreMe.cs: -------------------------------------------------------------------------------- 1 | namespace Types 2 | { 3 | public interface IIgnoreMe 4 | { 5 | string IgnoredProperty { get; set; } 6 | } 7 | 8 | public interface IIgnoreMe 9 | { 10 | T IgnoredProperty { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Tests/Fluent/Fluent/IInterface.cs: -------------------------------------------------------------------------------- 1 | namespace Types 2 | { 3 | public interface IInterface 4 | { 5 | public string Property { get; set; } 6 | } 7 | 8 | public interface IInterface 9 | { 10 | public T Property { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Tests/Fluent/Fluent/IgnoreMe.cs: -------------------------------------------------------------------------------- 1 | namespace Types 2 | { 3 | public class IgnoreMe 4 | { 5 | public string IgnoredProperty { get; set; } 6 | } 7 | 8 | public class IgnoreMe 9 | { 10 | public T IgnoredProperty { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Tests/Fluent/Fluent/SelfReferencingType.cs: -------------------------------------------------------------------------------- 1 | namespace Types 2 | { 3 | public class SelfReferencingType 4 | { 5 | public string Property { get; set; } 6 | public SelfReferencingType Self { get; set; } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Tests/Fluent/Fluent/SubType.cs: -------------------------------------------------------------------------------- 1 | namespace Types 2 | { 3 | public class SubType 4 | { 5 | public string Property { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Tests/Fluent/Fluent/TypeWithGenericAndNotGenericBaseInterface.cs: -------------------------------------------------------------------------------- 1 | namespace Types 2 | { 3 | public class TypeWithGenericAndNotGenericBaseInterface : IGenericInterfaceWithNonGenericBase 4 | { 5 | public string Property { get; set; } 6 | public string GenericProperty { get; set; } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Tests/Fluent/Fluent/TypeWithGenericAndNotGenericInterface.cs: -------------------------------------------------------------------------------- 1 | namespace Types 2 | { 3 | public class TypeWithGenericAndNotGenericInterface : IInterface, IInterface 4 | { 5 | public string Property { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Tests/Fluent/Fluent/TypeWithGenericIgnoredBase.cs: -------------------------------------------------------------------------------- 1 | namespace Types 2 | { 3 | public class TypeWithGenericIgnoredBase : IgnoreMe 4 | { 5 | public string Property { get; set; } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Tests/Fluent/Fluent/TypeWithGenericInterface.cs: -------------------------------------------------------------------------------- 1 | namespace Types 2 | { 3 | public class TypeWithGenericInterface : IGenericInterface 4 | { 5 | public string Property { get; set; } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Tests/Fluent/Fluent/TypeWithIgnoreGenericInterface.cs: -------------------------------------------------------------------------------- 1 | namespace Types 2 | { 3 | public class TypeWithIgnoreGenericInterface : IIgnoreMe 4 | { 5 | public string IgnoredProperty { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Tests/Fluent/Fluent/TypeWithIgnoreInterface.cs: -------------------------------------------------------------------------------- 1 | namespace Types 2 | { 3 | public class TypeWithIgnoreInterface : IIgnoreMe 4 | { 5 | public string IgnoredProperty { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Tests/Fluent/Fluent/TypeWithIgnoredBase.cs: -------------------------------------------------------------------------------- 1 | namespace Types 2 | { 3 | public class TypeWithIgnoredBase : IgnoreMe 4 | { 5 | public string Property { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Tests/Fluent/Fluent/TypeWithInterface.cs: -------------------------------------------------------------------------------- 1 | namespace Types 2 | { 3 | public class TypeWithInterface : IInterface 4 | { 5 | public string Property { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Tests/Formatting/Formatting/Formatting.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Tests/Formatting/Formatting/IInterface.cs: -------------------------------------------------------------------------------- 1 | namespace Formatting 2 | { 3 | public interface IInterface 4 | { 5 | 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Tests/Formatting/Formatting/Interface.cs: -------------------------------------------------------------------------------- 1 | namespace Formatting 2 | { 3 | public interface Interface 4 | { 5 | 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Tests/Formatting/Formatting/MyClass.cs: -------------------------------------------------------------------------------- 1 | namespace Formatting 2 | { 3 | public class MyClass 4 | { 5 | public string Property { get; } 6 | } 7 | 8 | public class MyClassWithInterface : Interface 9 | { } 10 | 11 | public class MyClassWithIInterface : IInterface 12 | { } 13 | } 14 | -------------------------------------------------------------------------------- /Tests/Formatting/Formatting/TabTest.cs: -------------------------------------------------------------------------------- 1 | namespace Formatting 2 | { 3 | public class TabTest 4 | { 5 | public string Property { get; } 6 | } 7 | } -------------------------------------------------------------------------------- /Tests/Formatting/Formatting/TwoWhitespaceTest.cs: -------------------------------------------------------------------------------- 1 | namespace Formatting 2 | { 3 | public class TwoWhitespaceTest 4 | { 5 | public string Property { get; } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Tests/Formatting/Generator/Output/WithPrefix/interface.interface.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export interface IInterface { 5 | } 6 | 7 | // outputid:95ca21b8-f1ff-4cc7-b96e-63d5a90970c3 8 | -------------------------------------------------------------------------------- /Tests/Formatting/Generator/Output/WithoutPrefix/interface.interface.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export interface IInterface { 5 | } 6 | 7 | // outputid:95ca21b8-f1ff-4cc7-b96e-63d5a90970c3 8 | -------------------------------------------------------------------------------- /Tests/Formatting/Generator/Output/WithoutPrefix/interface.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export interface Interface { 5 | } 6 | 7 | // outputid:95ca21b8-f1ff-4cc7-b96e-63d5a90970c3 8 | -------------------------------------------------------------------------------- /Tests/Formatting/Generator/Output/tab-test.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class TabTest { 5 | public property?: string; 6 | 7 | public constructor(init?: Partial) { 8 | Object.assign(this, init); 9 | } 10 | } 11 | 12 | // outputid:95ca21b8-f1ff-4cc7-b96e-63d5a90970c3 13 | -------------------------------------------------------------------------------- /Tests/Formatting/Generator/Output/two-whitespace-test.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class TwoWhitespaceTest { 5 | public property?: string; 6 | 7 | public constructor(init?: Partial) { 8 | Object.assign(this, init); 9 | } 10 | } 11 | 12 | // outputid:95ca21b8-f1ff-4cc7-b96e-63d5a90970c3 13 | -------------------------------------------------------------------------------- /Tests/Generator/Models/Read1Configuration.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Tests.Models 2 | { 3 | internal class Read1Configuration 4 | { 5 | public string Property1 { get; set; } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Tests/Generator/Models/Read2Configuration.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Tests.Models 2 | { 3 | internal class Read2Configuration 4 | { 5 | public string Property2 { get; set; } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Tests/Generator/Models/Reader1.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Transfer.Readers; 2 | 3 | namespace KY.Generator.Tests.Models 4 | { 5 | internal class Reader1 : ITransferReader 6 | { 7 | public void Read(Read1Configuration configuration) 8 | { } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Tests/Generator/Models/Reader2.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Transfer.Readers; 2 | 3 | namespace KY.Generator.Tests.Models 4 | { 5 | internal class Reader2 : ITransferReader 6 | { 7 | public void Read(Read2Configuration configuration) 8 | { } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Tests/Generator/Models/Write1Configuration.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Tests.Models 2 | { 3 | internal class Write1Configuration 4 | { 5 | public string Property1 { get; set; } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Tests/Generator/Models/Write2Configuration.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Tests.Models 2 | { 3 | internal class Write2Configuration 4 | { 5 | public string Property2 { get; set; } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Tests/Generator/Resources/empty-configuration-array.json: -------------------------------------------------------------------------------- 1 | [ 2 | {}, 3 | {} 4 | ] -------------------------------------------------------------------------------- /Tests/Generator/Resources/empty-configuration.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /Tests/Generator/Resources/empty-generate.json: -------------------------------------------------------------------------------- 1 | { 2 | "generate": {} 3 | } -------------------------------------------------------------------------------- /Tests/Generator/Resources/old-config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Language": "Csharp", 3 | "Generator": { 4 | "Client": { 5 | } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Tests/Generator/Resources/old-config.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Csharp 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Tests/Generator/Resources/one-generate-in-array-array.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 2, 3 | "generate": [ 4 | [ 5 | { 6 | "write": "1", 7 | "property1": "Test1" 8 | } 9 | ] 10 | ] 11 | } -------------------------------------------------------------------------------- /Tests/Generator/Resources/one-generate-in-array.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 2, 3 | "generate": [ 4 | { 5 | "write": "1", 6 | "property1": "Test1" 7 | } 8 | ] 9 | } -------------------------------------------------------------------------------- /Tests/Generator/Resources/one-generate.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 2, 3 | "generate": { 4 | "write": "1", 5 | "property1": "Test1" 6 | } 7 | } -------------------------------------------------------------------------------- /Tests/Generator/Resources/one-read-one-generate.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 2, 3 | "generate": [ 4 | { 5 | "Read": "1", 6 | "Property1": "Test1" 7 | }, 8 | { 9 | "Write": "1", 10 | "Property1": "Test2" 11 | } 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /Tests/Generator/Resources/two-generates-in-array-array.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 2, 3 | "generate": [ 4 | [ 5 | { 6 | "write": "1", 7 | "property1": "Test1" 8 | } 9 | ], 10 | [ 11 | { 12 | "write": "2", 13 | "property2": "Test2" 14 | } 15 | ] 16 | ] 17 | } -------------------------------------------------------------------------------- /Tests/Generator/Resources/two-reads-one-generate.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 2, 3 | "generate": [ 4 | { 5 | "Read": "1", 6 | "Property1": "Test1" 7 | }, 8 | { 9 | "Read": "2", 10 | "Property2": "Test2" 11 | }, 12 | { 13 | "Write": "1", 14 | "Property1": "Test3" 15 | } 16 | ] 17 | } -------------------------------------------------------------------------------- /Tests/Net5/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | [assembly:GenerateNoHeader] 4 | -------------------------------------------------------------------------------- /Tests/Net5/Output/generic-sub-type.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class GenericSubType { 5 | public single?: TOne; 6 | public single2?: string; 7 | public enumerable?: TOne[]; 8 | public list?: TTwo[]; 9 | public stringList?: string[]; 10 | } 11 | 12 | // outputid:f489d528-1077-4d58-83a4-45c2926a2206 13 | -------------------------------------------------------------------------------- /Tests/Net5/Output/sub-type.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class SubType { 5 | public property?: string; 6 | } 7 | 8 | // outputid:f489d528-1077-4d58-83a4-45c2926a2206 9 | -------------------------------------------------------------------------------- /Tests/Net6/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | [assembly:GenerateNoHeader] 4 | -------------------------------------------------------------------------------- /Tests/Net6/Output/generic-sub-type.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class GenericSubType { 5 | public single?: TOne; 6 | public single2?: string; 7 | public enumerable?: TOne[]; 8 | public list?: TTwo[]; 9 | public stringList?: string[]; 10 | } 11 | 12 | // outputid:0aacfb49-66dd-4b19-94db-18e7cc1628c0 13 | -------------------------------------------------------------------------------- /Tests/Net6/Output/sub-type.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class SubType { 5 | public property?: string; 6 | } 7 | 8 | // outputid:0aacfb49-66dd-4b19-94db-18e7cc1628c0 9 | -------------------------------------------------------------------------------- /Tests/Net7/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | [assembly:GenerateNoHeader] 4 | -------------------------------------------------------------------------------- /Tests/Net7/Output/generic-sub-type.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class GenericSubType { 5 | public single?: TOne; 6 | public single2?: string; 7 | public enumerable?: TOne[]; 8 | public list?: TTwo[]; 9 | public stringList?: string[]; 10 | } 11 | 12 | // outputid:6efc183e-a677-4cf2-bd36-b22c0bb466ce 13 | -------------------------------------------------------------------------------- /Tests/Net7/Output/sub-type.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class SubType { 5 | public property?: string; 6 | } 7 | 8 | // outputid:6efc183e-a677-4cf2-bd36-b22c0bb466ce 9 | -------------------------------------------------------------------------------- /Tests/Net8/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | [assembly:GenerateNoHeader] 4 | -------------------------------------------------------------------------------- /Tests/Net8/Output/generic-sub-type.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class GenericSubType { 5 | public single: TOne; 6 | public single2: string; 7 | public enumerable: TOne[]; 8 | public list: TTwo[]; 9 | public stringList: string[]; 10 | } 11 | 12 | // outputid:8d02ce37-8013-4a57-a40d-4a10c8c65de2 13 | -------------------------------------------------------------------------------- /Tests/Net8/Output/sub-type.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class SubType { 5 | public property: string; 6 | } 7 | 8 | // outputid:8d02ce37-8013-4a57-a40d-4a10c8c65de2 9 | -------------------------------------------------------------------------------- /Tests/Net9/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | [assembly:GenerateNoHeader] 4 | -------------------------------------------------------------------------------- /Tests/Net9/Output/generic-sub-type.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class GenericSubType { 5 | public single: TOne; 6 | public single2: string; 7 | public enumerable: TOne[]; 8 | public list: TTwo[]; 9 | public stringList: string[]; 10 | } 11 | 12 | // outputid:9c33e37c-3a6c-404f-8fab-dae790c04a8c 13 | -------------------------------------------------------------------------------- /Tests/Net9/Output/sub-type.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class SubType { 5 | public property: string; 6 | } 7 | 8 | // outputid:9c33e37c-3a6c-404f-8fab-dae790c04a8c 9 | -------------------------------------------------------------------------------- /Tests/ReflectionLoadFromNugetPackageNet5/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | [assembly:GenerateNoHeader] 4 | -------------------------------------------------------------------------------- /Tests/ReflectionLoadFromNugetPackageNet5/Output/class-1.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class Class1 { 5 | public test?: string; 6 | } 7 | 8 | // outputid:3d99e563-cf4b-42d2-aaca-9088f7a71b7e 9 | -------------------------------------------------------------------------------- /Tests/SignalR/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | [assembly:GenerateNoHeader] 4 | -------------------------------------------------------------------------------- /Tests/SignalR/ClientApp/src/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |
6 | 7 | -------------------------------------------------------------------------------- /Tests/SignalR/ClientApp/src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-root', 5 | templateUrl: './app.component.html' 6 | }) 7 | export class AppComponent { 8 | title = 'app'; 9 | } 10 | -------------------------------------------------------------------------------- /Tests/SignalR/ClientApp/src/app/counter/counter.component.html: -------------------------------------------------------------------------------- 1 |

Counter

2 | 3 |

This is a simple example of an Angular component.

4 | 5 |

Current count: {{ currentCount }}

6 | 7 | 8 | -------------------------------------------------------------------------------- /Tests/SignalR/ClientApp/src/app/counter/counter.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-counter-component', 5 | templateUrl: './counter.component.html' 6 | }) 7 | export class CounterComponent { 8 | public currentCount = 0; 9 | 10 | public incrementCounter() { 11 | this.currentCount++; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Tests/SignalR/ClientApp/src/app/home/home.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-home', 5 | templateUrl: './home.component.html', 6 | }) 7 | export class HomeComponent { 8 | } 9 | -------------------------------------------------------------------------------- /Tests/SignalR/ClientApp/src/app/multiple/services-2/index.ts: -------------------------------------------------------------------------------- 1 |  2 | export * from "./multiple-output-hub.service"; 3 | 4 | -------------------------------------------------------------------------------- /Tests/SignalR/ClientApp/src/assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KY-Programming/generator/f452ea9490f0864b858eefcef5631ecc7edea30a/Tests/SignalR/ClientApp/src/assets/.gitkeep -------------------------------------------------------------------------------- /Tests/SignalR/ClientApp/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /Tests/SignalR/ClientApp/src/styles.css: -------------------------------------------------------------------------------- 1 | /* You can add global styles to this file, and also import other style files */ 2 | 3 | /* Provide sufficient contrast against white background */ 4 | a { 5 | color: #0366d6; 6 | } 7 | 8 | code { 9 | color: #e01a76; 10 | } 11 | 12 | .btn-primary { 13 | color: #fff; 14 | background-color: #1b6ec2; 15 | border-color: #1861ac; 16 | } 17 | -------------------------------------------------------------------------------- /Tests/SignalR/Models/WeatherForecast.cs: -------------------------------------------------------------------------------- 1 | namespace SignalR; 2 | 3 | public class WeatherForecast 4 | { 5 | public DateTime Date { get; set; } 6 | 7 | public int TemperatureC { get; set; } 8 | 9 | public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); 10 | 11 | public string? Summary { get; set; } 12 | } -------------------------------------------------------------------------------- /Tests/SignalR/Pages/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using SignalR 2 | @namespace SignalR.Pages 3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers -------------------------------------------------------------------------------- /Tests/SignalR/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.AspNetCore.SpaProxy": "Information", 7 | "Microsoft.Hosting.Lifetime": "Information" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Tests/SignalR/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | }, 9 | "AllowedHosts": "*" 10 | } 11 | -------------------------------------------------------------------------------- /Tests/SignalR/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KY-Programming/generator/f452ea9490f0864b858eefcef5631ecc7edea30a/Tests/SignalR/wwwroot/favicon.ico -------------------------------------------------------------------------------- /Tests/Sqlite/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | [assembly:GenerateNoHeader] 4 | -------------------------------------------------------------------------------- /Tests/Sqlite/Models/Complex.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | namespace Sqlite.Models 4 | { 5 | [GenerateSqliteRepository("Output")] 6 | public class Complex 7 | { 8 | public string StringProperty { get; set; } 9 | 10 | public Simple Simple { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Tests/Sqlite/Models/Simple.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | namespace Sqlite.Models 4 | { 5 | [GenerateSqliteRepository("Output")] 6 | public class Simple 7 | { 8 | public string StringProperty { get; set; } 9 | 10 | [GenerateAsNotNull] 11 | public string NullableStringProperty { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Tests/Sqlite/Models/SimpleWithPrimary.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | namespace Sqlite.Models 4 | { 5 | [GenerateSqliteRepository("Output")] 6 | public class SimpleWithPrimary 7 | { 8 | [GenerateAsPrimaryKey] 9 | public int Id { get; set; } 10 | 11 | public string StringProperty { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Tests/Sqlite/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Sqlite 4 | { 5 | class Program 6 | { 7 | static void Main(string[] args) 8 | { 9 | Console.WriteLine("Hello World!"); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Tests/UrlVersionedWebApiController/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | [assembly:GenerateNoHeader] 4 | -------------------------------------------------------------------------------- /Tests/UrlVersionedWebApiController/ClientApp/e2e/src/app.po.ts: -------------------------------------------------------------------------------- 1 | import { browser, by, element } from 'protractor'; 2 | 3 | export class AppPage { 4 | navigateTo() { 5 | return browser.get('/'); 6 | } 7 | 8 | getMainHeading() { 9 | return element(by.css('app-root h1')).getText(); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Tests/UrlVersionedWebApiController/ClientApp/e2e/tsconfig.e2e.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "module": "commonjs", 6 | "target": "es5", 7 | "types": [ 8 | "jasmine", 9 | "jasminewd2", 10 | "node" 11 | ] 12 | } 13 | } -------------------------------------------------------------------------------- /Tests/UrlVersionedWebApiController/ClientApp/src/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |
6 | 7 | -------------------------------------------------------------------------------- /Tests/UrlVersionedWebApiController/ClientApp/src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-root', 5 | templateUrl: './app.component.html' 6 | }) 7 | export class AppComponent { 8 | title = 'app'; 9 | } 10 | -------------------------------------------------------------------------------- /Tests/UrlVersionedWebApiController/ClientApp/src/app/counter/counter.component.html: -------------------------------------------------------------------------------- 1 |

Counter

2 | 3 |

This is a simple example of an Angular component.

4 | 5 |

Current count: {{ currentCount }}

6 | 7 | 8 | -------------------------------------------------------------------------------- /Tests/UrlVersionedWebApiController/ClientApp/src/app/home/home.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-home', 5 | templateUrl: './home.component.html', 6 | }) 7 | export class HomeComponent { 8 | } 9 | -------------------------------------------------------------------------------- /Tests/UrlVersionedWebApiController/ClientApp/src/assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KY-Programming/generator/f452ea9490f0864b858eefcef5631ecc7edea30a/Tests/UrlVersionedWebApiController/ClientApp/src/assets/.gitkeep -------------------------------------------------------------------------------- /Tests/UrlVersionedWebApiController/ClientApp/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /Tests/UrlVersionedWebApiController/ClientApp/src/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "types": [] 6 | }, 7 | "exclude": [ 8 | "src/test.ts", 9 | "**/*.spec.ts" 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /Tests/UrlVersionedWebApiController/ClientApp/src/tsconfig.server.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "module": "commonjs" 5 | }, 6 | "angularCompilerOptions": { 7 | "entryModule": "app/app.server.module#AppServerModule" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Tests/UrlVersionedWebApiController/Pages/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using UrlVersionedWebApiController 2 | @namespace UrlVersionedWebApiController.Pages 3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers -------------------------------------------------------------------------------- /Tests/UrlVersionedWebApiController/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Tests/UrlVersionedWebApiController/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | }, 9 | "AllowedHosts": "*" 10 | } 11 | -------------------------------------------------------------------------------- /Tests/UrlVersionedWebApiController/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KY-Programming/generator/f452ea9490f0864b858eefcef5631ecc7edea30a/Tests/UrlVersionedWebApiController/wwwroot/favicon.ico -------------------------------------------------------------------------------- /Tests/WebApiController/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | [assembly:GenerateNoHeader] 4 | -------------------------------------------------------------------------------- /Tests/WebApiController/ClientApp/.editorconfig: -------------------------------------------------------------------------------- 1 | # Editor configuration, see http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 2 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | max_line_length = off 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /Tests/WebApiController/ClientApp/e2e/src/app.po.ts: -------------------------------------------------------------------------------- 1 | import { browser, by, element } from 'protractor'; 2 | 3 | export class AppPage { 4 | navigateTo() { 5 | return browser.get('/'); 6 | } 7 | 8 | getMainHeading() { 9 | return element(by.css('app-root h1')).getText(); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Tests/WebApiController/ClientApp/e2e/tsconfig.e2e.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "module": "commonjs", 6 | "target": "es5", 7 | "types": [ 8 | "jasmine", 9 | "jasminewd2", 10 | "node" 11 | ] 12 | } 13 | } -------------------------------------------------------------------------------- /Tests/WebApiController/ClientApp/src/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |
6 | 7 | -------------------------------------------------------------------------------- /Tests/WebApiController/ClientApp/src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-root', 5 | templateUrl: './app.component.html' 6 | }) 7 | export class AppComponent { 8 | title = 'app'; 9 | } 10 | -------------------------------------------------------------------------------- /Tests/WebApiController/ClientApp/src/app/convert-to-interface/models/convert-me-optional.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export interface ConvertMeOptional { 5 | stringProperty?: string; 6 | intProperty?: number; 7 | doubleProperty?: number; 8 | dateTimeProperty?: Date; 9 | } 10 | 11 | // outputid:627408ca-a818-4326-b843-415f5bbfb028 12 | -------------------------------------------------------------------------------- /Tests/WebApiController/ClientApp/src/app/convert-to-interface/models/convert-me.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export interface ConvertMe { 5 | stringProperty?: string; 6 | } 7 | 8 | // outputid:627408ca-a818-4326-b843-415f5bbfb028 9 | -------------------------------------------------------------------------------- /Tests/WebApiController/ClientApp/src/app/convert-to-interface/models/index.ts: -------------------------------------------------------------------------------- 1 |  2 | export * from "./convert-me"; 3 | export * from "./convert-me-optional"; 4 | 5 | -------------------------------------------------------------------------------- /Tests/WebApiController/ClientApp/src/app/convert-to-interface/services/index.ts: -------------------------------------------------------------------------------- 1 |  2 | export * from "./convert-to-interface.service"; 3 | export * from "./convert-to-interface-optional.service"; 4 | 5 | -------------------------------------------------------------------------------- /Tests/WebApiController/ClientApp/src/app/counter/counter.component.html: -------------------------------------------------------------------------------- 1 |

Counter

2 | 3 |

This is a simple example of an Angular component.

4 | 5 |

Current count: {{ currentCount }}

6 | 7 | 8 | -------------------------------------------------------------------------------- /Tests/WebApiController/ClientApp/src/app/counter/counter.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-counter-component', 5 | templateUrl: './counter.component.html' 6 | }) 7 | export class CounterComponent { 8 | public currentCount = 0; 9 | 10 | public incrementCounter() { 11 | this.currentCount++; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Tests/WebApiController/ClientApp/src/app/date/date.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KY-Programming/generator/f452ea9490f0864b858eefcef5631ecc7edea30a/Tests/WebApiController/ClientApp/src/app/date/date.component.css -------------------------------------------------------------------------------- /Tests/WebApiController/ClientApp/src/app/date/models/date-model.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class DateModel { 5 | public id?: string; 6 | public date?: Date; 7 | 8 | public constructor(init?: Partial) { 9 | Object.assign(this, init); 10 | } 11 | } 12 | 13 | // outputid:627408ca-a818-4326-b843-415f5bbfb028 14 | -------------------------------------------------------------------------------- /Tests/WebApiController/ClientApp/src/app/date/services/index.ts: -------------------------------------------------------------------------------- 1 |  2 | export * from "./date.service"; 3 | export * from "./optional-property.service"; 4 | 5 | -------------------------------------------------------------------------------- /Tests/WebApiController/ClientApp/src/app/edge-cases/components/edge-cases.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KY-Programming/generator/f452ea9490f0864b858eefcef5631ecc7edea30a/Tests/WebApiController/ClientApp/src/app/edge-cases/components/edge-cases.component.css -------------------------------------------------------------------------------- /Tests/WebApiController/ClientApp/src/app/edge-cases/models/date-model.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class DateModel { 5 | public id?: string; 6 | public date?: Date; 7 | 8 | public constructor(init?: Partial) { 9 | Object.assign(this, init); 10 | } 11 | } 12 | 13 | // outputid:627408ca-a818-4326-b843-415f5bbfb028 14 | -------------------------------------------------------------------------------- /Tests/WebApiController/ClientApp/src/app/edge-cases/models/exclusive-generic-complex-result.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class ExclusiveGenericComplexResult { 5 | public constructor(init?: Partial) { 6 | Object.assign(this, init); 7 | } 8 | } 9 | 10 | // outputid:627408ca-a818-4326-b843-415f5bbfb028 11 | -------------------------------------------------------------------------------- /Tests/WebApiController/ClientApp/src/app/edge-cases/models/index.ts: -------------------------------------------------------------------------------- 1 |  2 | export * from "./date-model"; 3 | export * from "./exclusive-generic-complex-result"; 4 | export * from "./generic-result"; 5 | export * from "./self-referencing-model"; 6 | 7 | -------------------------------------------------------------------------------- /Tests/WebApiController/ClientApp/src/app/fix-casing/fix-casing.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KY-Programming/generator/f452ea9490f0864b858eefcef5631ecc7edea30a/Tests/WebApiController/ClientApp/src/app/fix-casing/fix-casing.component.css -------------------------------------------------------------------------------- /Tests/WebApiController/ClientApp/src/app/fix-casing/models/index.ts: -------------------------------------------------------------------------------- 1 |  2 | export * from "./casing-model"; 3 | export * from "./casing-with-mapping-model"; 4 | 5 | -------------------------------------------------------------------------------- /Tests/WebApiController/ClientApp/src/app/get-complex/models/index.ts: -------------------------------------------------------------------------------- 1 |  2 | export * from "./get-complex-model"; 3 | export * from "./get-complex-model-service"; 4 | 5 | -------------------------------------------------------------------------------- /Tests/WebApiController/ClientApp/src/app/home/home.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-home', 5 | templateUrl: './home.component.html', 6 | }) 7 | export class HomeComponent { 8 | } 9 | -------------------------------------------------------------------------------- /Tests/WebApiController/ClientApp/src/app/keep-casing/keep-casing.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KY-Programming/generator/f452ea9490f0864b858eefcef5631ecc7edea30a/Tests/WebApiController/ClientApp/src/app/keep-casing/keep-casing.component.css -------------------------------------------------------------------------------- /Tests/WebApiController/ClientApp/src/app/keep-casing/keep-casing.component.html: -------------------------------------------------------------------------------- 1 |
Loading...
2 |
Works
3 |
{{model | json}}
-------------------------------------------------------------------------------- /Tests/WebApiController/ClientApp/src/app/post/models/post-model.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class PostModel { 5 | public value?: string; 6 | 7 | public constructor(init?: Partial) { 8 | Object.assign(this, init); 9 | } 10 | } 11 | 12 | // outputid:627408ca-a818-4326-b843-415f5bbfb028 13 | -------------------------------------------------------------------------------- /Tests/WebApiController/ClientApp/src/app/rename/models/data.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class Data { 5 | public constructor(init?: Partial) { 6 | Object.assign(this, init); 7 | } 8 | } 9 | 10 | // outputid:627408ca-a818-4326-b843-415f5bbfb028 11 | -------------------------------------------------------------------------------- /Tests/WebApiController/ClientApp/src/app/rename/models/index.ts: -------------------------------------------------------------------------------- 1 |  2 | export * from "./data"; 3 | export * from "./rename-model"; 4 | 5 | -------------------------------------------------------------------------------- /Tests/WebApiController/ClientApp/src/app/rename/models/rename-model.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class RenameModel { 5 | public constructor(init?: Partial) { 6 | Object.assign(this, init); 7 | } 8 | } 9 | 10 | // outputid:627408ca-a818-4326-b843-415f5bbfb028 11 | -------------------------------------------------------------------------------- /Tests/WebApiController/ClientApp/src/app/versioned-api/versioned-api.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KY-Programming/generator/f452ea9490f0864b858eefcef5631ecc7edea30a/Tests/WebApiController/ClientApp/src/app/versioned-api/versioned-api.component.css -------------------------------------------------------------------------------- /Tests/WebApiController/ClientApp/src/app/versioned-api/versioned-api.component.html: -------------------------------------------------------------------------------- 1 |
Loading...
2 |
Works
3 |
{{models | json}}
4 |
5 | 6 | 7 | 8 |
9 | -------------------------------------------------------------------------------- /Tests/WebApiController/ClientApp/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /Tests/WebApiController/ClientApp/src/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "types": [] 6 | }, 7 | "exclude": [ 8 | "src/test.ts", 9 | "**/*.spec.ts" 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /Tests/WebApiController/ClientApp/src/tsconfig.server.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "module": "commonjs" 5 | }, 6 | "angularCompilerOptions": { 7 | "entryModule": "app/app.server.module#AppServerModule" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Tests/WebApiController/Models/ConvertMe.cs: -------------------------------------------------------------------------------- 1 | namespace WebApiController.Models 2 | { 3 | public class ConvertMe 4 | { 5 | public string StringProperty { get; set; } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Tests/WebApiController/Models/DummyData.cs: -------------------------------------------------------------------------------- 1 | namespace WebApiController.Models 2 | { 3 | public class DummyData 4 | { 5 | } 6 | } -------------------------------------------------------------------------------- /Tests/WebApiController/Models/PostModel.cs: -------------------------------------------------------------------------------- 1 | namespace WebApiController.Models 2 | { 3 | public class PostModel 4 | { 5 | public string Value { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Tests/WebApiController/Models/RenameDto.cs: -------------------------------------------------------------------------------- 1 | namespace WebApiController.Models 2 | { 3 | public class RenameDto 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Tests/WebApiController/Models/SelfReferencingModel.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace WebApiController.Models 4 | { 5 | public class SelfReferencingModel 6 | { 7 | public string Name { get; set; } 8 | public List Children { get; } = new List(); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Tests/WebApiController/Pages/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using WebApiController 2 | @namespace WebApiController.Pages 3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 4 | -------------------------------------------------------------------------------- /Tests/WebApiController/Services/DummyService.cs: -------------------------------------------------------------------------------- 1 | namespace WebApiController.Services 2 | { 3 | public class DummyService 4 | { 5 | public void Action() 6 | { } 7 | } 8 | } -------------------------------------------------------------------------------- /Tests/WebApiController/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Tests/WebApiController/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | }, 9 | "AllowedHosts": "*" 10 | } 11 | -------------------------------------------------------------------------------- /Tests/WebApiController/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KY-Programming/generator/f452ea9490f0864b858eefcef5631ecc7edea30a/Tests/WebApiController/wwwroot/favicon.ico -------------------------------------------------------------------------------- /Tests/WebApiFluent/ClientApp/e2e/src/app.po.ts: -------------------------------------------------------------------------------- 1 | import { browser, by, element } from 'protractor'; 2 | 3 | export class AppPage { 4 | navigateTo() { 5 | return browser.get('/'); 6 | } 7 | 8 | getMainHeading() { 9 | return element(by.css('app-root h1')).getText(); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Tests/WebApiFluent/ClientApp/e2e/tsconfig.e2e.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "module": "commonjs", 6 | "target": "es5", 7 | "types": [ 8 | "jasmine", 9 | "jasminewd2", 10 | "node" 11 | ] 12 | } 13 | } -------------------------------------------------------------------------------- /Tests/WebApiFluent/ClientApp/src/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |
6 | 7 | -------------------------------------------------------------------------------- /Tests/WebApiFluent/ClientApp/src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-root', 5 | templateUrl: './app.component.html' 6 | }) 7 | export class AppComponent { 8 | title = 'app'; 9 | } 10 | -------------------------------------------------------------------------------- /Tests/WebApiFluent/ClientApp/src/app/counter/counter.component.html: -------------------------------------------------------------------------------- 1 |

Counter

2 | 3 |

This is a simple example of an Angular component.

4 | 5 |

Current count: {{ currentCount }}

6 | 7 | 8 | -------------------------------------------------------------------------------- /Tests/WebApiFluent/ClientApp/src/app/counter/counter.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-counter-component', 5 | templateUrl: './counter.component.html' 6 | }) 7 | export class CounterComponent { 8 | public currentCount = 0; 9 | 10 | public incrementCounter() { 11 | this.currentCount++; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Tests/WebApiFluent/ClientApp/src/app/home/home.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-home', 5 | templateUrl: './home.component.html', 6 | }) 7 | export class HomeComponent { 8 | } 9 | -------------------------------------------------------------------------------- /Tests/WebApiFluent/ClientApp/src/assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KY-Programming/generator/f452ea9490f0864b858eefcef5631ecc7edea30a/Tests/WebApiFluent/ClientApp/src/assets/.gitkeep -------------------------------------------------------------------------------- /Tests/WebApiFluent/ClientApp/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /Tests/WebApiFluent/ClientApp/src/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "types": [] 6 | }, 7 | "exclude": [ 8 | "src/test.ts", 9 | "**/*.spec.ts" 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /Tests/WebApiFluent/ClientApp/src/tsconfig.server.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "module": "commonjs" 5 | }, 6 | "angularCompilerOptions": { 7 | "entryModule": "app/app.server.module#AppServerModule" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Tests/WebApiFluent/ClientApp/src/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/spec", 5 | "types": [ 6 | "jasmine", 7 | "node" 8 | ] 9 | }, 10 | "files": [ 11 | "test.ts", 12 | "polyfills.ts" 13 | ], 14 | "include": [ 15 | "**/*.spec.ts", 16 | "**/*.d.ts" 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /Tests/WebApiFluent/Pages/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using WebApiFluent 2 | @namespace WebApiFluent.Pages 3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers -------------------------------------------------------------------------------- /Tests/WebApiFluent/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Tests/WebApiFluent/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | }, 9 | "AllowedHosts": "*" 10 | } 11 | -------------------------------------------------------------------------------- /Tests/WebApiFluent/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KY-Programming/generator/f452ea9490f0864b858eefcef5631ecc7edea30a/Tests/WebApiFluent/wwwroot/favicon.ico -------------------------------------------------------------------------------- /Tests/v10/EnumAnnotationsNotNullable/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | [assembly:GenerateNoHeader] 4 | [assembly:GenerateModelOutput("Output")] 5 | -------------------------------------------------------------------------------- /Tests/v10/InheritanceAnnotationsNotNullable/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | [assembly:GenerateNoHeader] 4 | [assembly:GenerateModelOutput("Output")] 5 | -------------------------------------------------------------------------------- /Tests/v10/InheritanceAnnotationsNotNullable/Output/Angular/abstract.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export abstract class Abstract { 5 | public stringProperty: string; 6 | public abstractProperty: string; 7 | } 8 | 9 | // outputid:605e91d7-ee13-4f1d-9b92-845bb3ace852 10 | -------------------------------------------------------------------------------- /Tests/v10/InheritanceAnnotationsNotNullable/Output/Angular/index.ts: -------------------------------------------------------------------------------- 1 |  2 | export * from "./abstract"; 3 | export * from "./base"; 4 | export * from "./derive-with-new"; 5 | export * from "./derived-from-abstract"; 6 | export * from "./derived-from-virtual"; 7 | export * from "./derived"; 8 | export * from "./virtual"; 9 | 10 | -------------------------------------------------------------------------------- /Tests/v10/InheritanceAnnotationsNotNullable/Output/abstract.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export abstract class Abstract { 5 | public stringProperty: string; 6 | public abstractProperty: string; 7 | } 8 | 9 | // outputid:605e91d7-ee13-4f1d-9b92-845bb3ace852 10 | -------------------------------------------------------------------------------- /Tests/v10/InheritanceAnnotationsNotNullable/Output/base.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class Base { 5 | public stringField: string; 6 | public stringProperty: string; 7 | } 8 | 9 | // outputid:605e91d7-ee13-4f1d-9b92-845bb3ace852 10 | -------------------------------------------------------------------------------- /Tests/v10/InheritanceAnnotationsNotNullable/Output/derive-with-new.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | import { Base } from "./base"; 5 | 6 | export class DeriveWithNew extends Base { 7 | public stringField: string; 8 | public stringProperty: number; 9 | } 10 | 11 | // outputid:605e91d7-ee13-4f1d-9b92-845bb3ace852 12 | -------------------------------------------------------------------------------- /Tests/v10/InheritanceAnnotationsNotNullable/Output/derived-from-abstract.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | import { Abstract } from "./abstract"; 5 | 6 | export class DerivedFromAbstract extends Abstract { 7 | public intProperty: number; 8 | public abstractProperty: string; 9 | } 10 | 11 | // outputid:605e91d7-ee13-4f1d-9b92-845bb3ace852 12 | -------------------------------------------------------------------------------- /Tests/v10/InheritanceAnnotationsNotNullable/Output/derived-from-virtual.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | import { Virtual } from "./virtual"; 5 | 6 | export class DerivedFromVirtual extends Virtual { 7 | public intProperty: number; 8 | public virtualProperty: string; 9 | } 10 | 11 | // outputid:605e91d7-ee13-4f1d-9b92-845bb3ace852 12 | -------------------------------------------------------------------------------- /Tests/v10/InheritanceAnnotationsNotNullable/Output/derived.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | import { Base } from "./base"; 5 | 6 | export class Derived extends Base { 7 | } 8 | 9 | // outputid:605e91d7-ee13-4f1d-9b92-845bb3ace852 10 | -------------------------------------------------------------------------------- /Tests/v10/InheritanceAnnotationsNotNullable/Output/virtual.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export class Virtual { 5 | public stringProperty: string; 6 | public virtualProperty: string; 7 | } 8 | 9 | // outputid:605e91d7-ee13-4f1d-9b92-845bb3ace852 10 | -------------------------------------------------------------------------------- /Tests/v10/SelfReferencingAnnotationsNullable/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | [assembly:GenerateNoHeader] 4 | [assembly:GenerateModelOutput("Output")] 5 | -------------------------------------------------------------------------------- /Tests/v10/StrictAnnotationsNotNullable/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | [assembly:GenerateNoHeader] 4 | [assembly:GenerateModelOutput("Output")] 5 | -------------------------------------------------------------------------------- /Tests/v10/StrictAnnotationsNullable/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | [assembly:GenerateNoHeader] 4 | [assembly:GenerateModelOutput("Output")] 5 | -------------------------------------------------------------------------------- /Tests/v10/TypesAnnotationsNotNullable/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | [assembly:GenerateNoHeader] 4 | [assembly:GenerateModelOutput("Output")] 5 | -------------------------------------------------------------------------------- /Tests/v10/TypesAnnotationsNotNullable/Output/generic-sub-type.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export interface GenericSubType { 5 | single?: TOne; 6 | single2?: string; 7 | enumerable?: TOne[]; 8 | list?: TTwo[]; 9 | stringList?: string[]; 10 | } 11 | 12 | // outputid:88210355-ddb5-4bf6-a426-81493e839d4e 13 | -------------------------------------------------------------------------------- /Tests/v10/TypesAnnotationsNotNullable/Output/index.ts: -------------------------------------------------------------------------------- 1 |  2 | export * from "./generic-sub-type"; 3 | export * from "./sub-type"; 4 | export * from "./types"; 5 | 6 | -------------------------------------------------------------------------------- /Tests/v10/TypesAnnotationsNotNullable/Output/sub-type.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export interface SubType { 5 | property?: string; 6 | } 7 | 8 | // outputid:88210355-ddb5-4bf6-a426-81493e839d4e 9 | -------------------------------------------------------------------------------- /Tests/v10/TypesAnnotationsNullable/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator; 2 | 3 | [assembly:GenerateNoHeader] 4 | [assembly:GenerateModelOutput("Output")] 5 | -------------------------------------------------------------------------------- /Tests/v10/TypesAnnotationsNullable/Output/generic-sub-type.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export interface GenericSubType { 5 | single?: TOne; 6 | single2?: string; 7 | enumerable?: TOne[]; 8 | list?: TTwo[]; 9 | stringList?: string[]; 10 | } 11 | 12 | // outputid:f13dd313-1bd6-4a8e-9b3f-d6266d3a25ff 13 | -------------------------------------------------------------------------------- /Tests/v10/TypesAnnotationsNullable/Output/index.ts: -------------------------------------------------------------------------------- 1 |  2 | export * from "./generic-sub-type"; 3 | export * from "./sub-type"; 4 | export * from "./types"; 5 | 6 | -------------------------------------------------------------------------------- /Tests/v10/TypesAnnotationsNullable/Output/sub-type.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | // tslint:disable 3 | 4 | export interface SubType { 5 | property?: string; 6 | } 7 | 8 | // outputid:f13dd313-1bd6-4a8e-9b3f-d6266d3a25ff 9 | -------------------------------------------------------------------------------- /Tsql/Configurations/TsqlReadEntityKeyAction.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Tsql.Configurations 2 | { 3 | public class TsqlReadEntityKeyAction 4 | { 5 | public string Action { get; set; } 6 | public string Name { get; set; } 7 | public bool All { get; set; } 8 | } 9 | } -------------------------------------------------------------------------------- /Tsql/Configurations/TsqlReadStoredProcedure.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Tsql.Configurations 2 | { 3 | public class TsqlReadStoredProcedure 4 | { 5 | public string Schema { get; set; } 6 | public string Name { get; set; } 7 | } 8 | } -------------------------------------------------------------------------------- /Tsql/Fluent/ITsqlReadSyntax.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Tsql.Fluent 2 | { 3 | public interface ITsqlReadSyntax 4 | { 5 | ITsqlReadSyntax FromTable(string schema, string table); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Tsql/Language/TsqlLanguage.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Languages; 2 | 3 | namespace KY.Generator.Tsql.Language 4 | { 5 | public class TsqlLanguage : EmptyLanguage 6 | { 7 | public static TsqlLanguage Instance { get; } = new TsqlLanguage(); 8 | 9 | public override string Name => "Tsql"; 10 | 11 | private TsqlLanguage() 12 | { } 13 | } 14 | } -------------------------------------------------------------------------------- /Tsql/Type/TsqlParameter.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.Tsql.Type 2 | { 3 | public class TsqlParameter 4 | { 5 | public string Name { get; set; } 6 | public string Type { get; set; } 7 | public int Order { get; set; } 8 | public bool IsNullable { get; set; } 9 | } 10 | } -------------------------------------------------------------------------------- /TypeScript/Languages/LanguageExtension.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Languages; 2 | 3 | namespace KY.Generator.TypeScript.Languages 4 | { 5 | public static class LanguageExtension 6 | { 7 | public static bool IsTypeScript(this ILanguage language) 8 | { 9 | return language is TypeScriptLanguage; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /TypeScript/Templates/ConstructorTemplate.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Templates; 2 | 3 | namespace KY.Generator.TypeScript.Templates 4 | { 5 | public class ConstructorTemplate : MethodTemplate 6 | { 7 | public ConstructorTemplate(ClassTemplate classTemplate) 8 | : base(classTemplate, "constructor", null) 9 | { } 10 | } 11 | } -------------------------------------------------------------------------------- /TypeScript/Templates/ForceNullTemplate.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Templates; 2 | 3 | namespace KY.Generator.TypeScript.Templates 4 | { 5 | public class ForceNullTemplate : NullTemplate 6 | { } 7 | } -------------------------------------------------------------------------------- /TypeScript/Templates/ForceNullValueTemplate.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Templates; 2 | 3 | namespace KY.Generator.TypeScript.Templates 4 | { 5 | public class ForceNullValueTemplate : ChainedCodeFragment 6 | { 7 | public override string Separator => " "; 8 | } 9 | } -------------------------------------------------------------------------------- /TypeScript/Transfer/ExportIndexLine.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace KY.Generator.TypeScript.Transfer 4 | { 5 | public class ExportIndexLine : IIndexLine 6 | { 7 | public List Types { get; set; } = new(); 8 | public string Path { get; set; } 9 | } 10 | } -------------------------------------------------------------------------------- /TypeScript/Transfer/IIndexLine.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.TypeScript.Transfer 2 | { 3 | public interface IIndexLine 4 | { } 5 | } -------------------------------------------------------------------------------- /TypeScript/Transfer/TypeScriptIndexFile.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using KY.Generator.Transfer; 3 | 4 | namespace KY.Generator.TypeScript.Transfer 5 | { 6 | public class TypeScriptIndexFile : ITransferObject 7 | { 8 | public string RelativePath { get; set; } 9 | public List Lines { get; } = new(); 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /TypeScript/Transfer/UnknownIndexLine.cs: -------------------------------------------------------------------------------- 1 | namespace KY.Generator.TypeScript.Transfer 2 | { 3 | public class UnknownIndexLine : IIndexLine 4 | { 5 | public string Content { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /TypeScript/Writers/TypeScriptNamespaceWriter.cs: -------------------------------------------------------------------------------- 1 | using KY.Generator.Writers; 2 | 3 | namespace KY.Generator.TypeScript.Writers 4 | { 5 | public class TypeScriptNamespaceWriter : NamespaceWriter 6 | { 7 | public TypeScriptNamespaceWriter() 8 | { 9 | this.NamespaceKeyword = "export namespace"; 10 | } 11 | 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Watchdog/Helpers/InstanceHelper.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | 3 | namespace KY.Generator.Watchdog.Helpers 4 | { 5 | public static class InstanceHelper 6 | { 7 | public static bool IsRunning() 8 | { 9 | return Process.GetProcessesByName(Process.GetCurrentProcess().ProcessName).Length > 1; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KY-Programming/generator/f452ea9490f0864b858eefcef5631ecc7edea30a/icon.png -------------------------------------------------------------------------------- /nircmd.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KY-Programming/generator/f452ea9490f0864b858eefcef5631ecc7edea30a/nircmd.exe --------------------------------------------------------------------------------