/// <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));
 }
예제 #2
0
 /// <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;
 }
예제 #3
0
 /// <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;
 }
예제 #4
0
 /// <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;
 }