Skip to content

Commit 8508071

Browse files
committed
bug fix for the dependency injection builder.
1 parent a8769e9 commit 8508071

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

src/Architecture/CodeFactory.Architecture.Blazor.Server/CSharpFile/RefreshEFRepository.cs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public RefreshEFRepository(ILogger logger, IVsActions vsActions) : base(logger,
117117
/// <summary>
118118
/// Optional, suffix to assign to a repository when creating.
119119
/// </summary>
120-
public static string RepositorySuffix = "RepositoryPrefix";
120+
public static string RepositorySuffix = "RepositorySuffix";
121121

122122
/// <summary>
123123
/// Optional, prefix to assign to a application model when creating.
@@ -233,6 +233,24 @@ public override ConfigCommand LoadExternalConfigDefinition()
233233
Value = "AppModel"
234234
}
235235
)
236+
.AddParameter
237+
(
238+
new ConfigParameter
239+
{
240+
Name = AppModelValidatorPrefix,
241+
Guidance = "Optional, prefix to assign to the application model entity validator when it is created."
242+
243+
}
244+
)
245+
.AddParameter
246+
(
247+
new ConfigParameter
248+
{
249+
Name = AppModelValidatorSuffix,
250+
Guidance = "Optional, suffix to assign to the application model entity validator when it is created.",
251+
Value = "Validator"
252+
}
253+
)
236254
)
237255
.AddProject
238256
(

src/Automation/CodeFactory.Automation.NDF.Logic/DependencyInjectionBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ private static string FormatTransientRegistration(CsClass classData, string serv
360360

361361
else
362362
{
363-
bool isFirstParameter = constructorData.Parameters.Count != 1;
363+
bool isFirstParameter = true;
364364

365365
StringBuilder constructorSyntax = new StringBuilder();
366366

0 commit comments

Comments
 (0)