Skip to content

Commit a053702

Browse files
committed
Namespace fixes
+semver:patch
1 parent 9517110 commit a053702

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/AutSoft.DbScaffolding/Configuration/InterfaceProperties.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
namespace AutSoft.DbScaffolding.Configuration;
1+
#pragma warning disable IDE0130 // Namespace does not match folder structure
2+
namespace AutSoft.DbScaffolding.EntityAbstractions;
3+
#pragma warning restore IDE0130 // Namespace does not match folder structure
24

35
/// <summary>
46
/// Configure ISoftDeletableEntity and IAuditableEntity interface generation

src/AutSoft.DbScaffolding/ServiceCollectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static IServiceCollection AddDatabaseScaffoldingCore<TEntityGenerator, TD
4242
{
4343
var generatorType = typeof(TEntityGenerator);
4444
var templateAssembly = generatorType.Assembly;
45-
var templateNamespace = generatorType.Namespace;
45+
var templateNamespace = templateAssembly.GetName().Name;
4646

4747
services.AddHandlebarsScaffolding((options) =>
4848
{

0 commit comments

Comments
 (0)