/// <summary> /// Constructor for the Handlebars entity types generator. /// </summary> /// <param name="entityTypeTemplateService">Template service for the entity types generator.</param> /// <param name="entityTypeTransformationService">Service for transforming entity definitions.</param> /// <param name="cSharpHelper">CSharp helper.</param> /// <param name="typeScriptHelper">TypeScript helper.</param> public HbsTypeScriptEntityTypeGenerator( IEntityTypeTemplateService entityTypeTemplateService, IEntityTypeTransformationService entityTypeTransformationService, ICSharpHelper cSharpHelper, ITypeScriptHelper typeScriptHelper) { CSharpHelper = cSharpHelper ?? throw new ArgumentNullException(nameof(cSharpHelper)); TypeScriptHelper = typeScriptHelper ?? throw new ArgumentNullException(nameof(typeScriptHelper)); EntityTypeTemplateService = entityTypeTemplateService ?? throw new ArgumentNullException(nameof(entityTypeTemplateService)); EntityTypeTransformationService = entityTypeTransformationService ?? throw new ArgumentNullException(nameof(entityTypeTransformationService)); }
/// <summary> /// Constructor for the Handlebars entity types generator. /// </summary> /// <param name="entityTypeTemplateService">Template service for the entity types generator.</param> /// <param name="entityTypeTransformationService">Service for transforming entity definitions.</param> /// <param name="cSharpHelper">CSharp helper.</param> /// <param name="typeScriptHelper">TypeScript helper.</param> public HbsTypeScriptEntityTypeGenerator( [NotNull] IEntityTypeTemplateService entityTypeTemplateService, [NotNull] IEntityTypeTransformationService entityTypeTransformationService, [NotNull] ICSharpHelper cSharpHelper, [NotNull] ITypeScriptHelper typeScriptHelper) : base(cSharpHelper) { EntityTypeTemplateService = entityTypeTemplateService; EntityTypeTransformationService = entityTypeTransformationService; CSharpHelper = cSharpHelper; TypeScriptHelper = typeScriptHelper; }
/// <summary> /// Constructor for the Handlebars entity types generator. /// </summary> /// <param name="entityTypeTemplateService">Template service for the entity types generator.</param> /// <param name="entityTypeTransformationService">Service for transforming entity definitions.</param> /// <param name="cSharpHelper">CSharp helper.</param> /// <param name="typeScriptHelper">TypeScript helper.</param> /// <param name="options">Handlebars scaffolding options.</param> public HbsTypeScriptEntityTypeGenerator( [NotNull] IEntityTypeTemplateService entityTypeTemplateService, [NotNull] IEntityTypeTransformationService entityTypeTransformationService, [NotNull] ICSharpHelper cSharpHelper, [NotNull] ITypeScriptHelper typeScriptHelper, [NotNull] IOptions <HandlebarsScaffoldingOptions> options) : base(cSharpHelper) { EntityTypeTemplateService = entityTypeTemplateService; EntityTypeTransformationService = entityTypeTransformationService; CSharpHelper = cSharpHelper; TypeScriptHelper = typeScriptHelper; _options = options; }
/// <summary> /// Constructor for the Handlebars entity types generator. /// </summary> /// <param name="annotationCodeGenerator">Annotation code generator.</param> /// <param name="entityTypeTemplateService">Template service for the entity types generator.</param> /// <param name="entityTypeTransformationService">Service for transforming entity definitions.</param> /// <param name="cSharpHelper">CSharp helper.</param> /// <param name="typeScriptHelper">TypeScript helper.</param> /// <param name="options">Handlebars scaffolding options.</param> public HbsTypeScriptEntityTypeGenerator( [NotNull] IAnnotationCodeGenerator annotationCodeGenerator, [NotNull] IEntityTypeTemplateService entityTypeTemplateService, [NotNull] IEntityTypeTransformationService entityTypeTransformationService, [NotNull] ICSharpHelper cSharpHelper, [NotNull] ITypeScriptHelper typeScriptHelper, [NotNull] ResolvingNamesService resolvingNamesService, [NotNull] IOptions <HandlebarsScaffoldingOptions> options) : base(annotationCodeGenerator, cSharpHelper) { EntityTypeTemplateService = entityTypeTemplateService; EntityTypeTransformationService = entityTypeTransformationService; CSharpHelper = cSharpHelper; TypeScriptHelper = typeScriptHelper; ResolvingNamesService = resolvingNamesService; _options = options; }