From 6c901ea46b0c75cbb651e95b8b8226119d657919 Mon Sep 17 00:00:00 2001 From: AliveDevil Date: Thu, 30 Jan 2025 00:14:20 +0100 Subject: [PATCH] Cleanup Namespaces --- Data/ApplicationDbContext.cs | 2 +- ...000000000_CreateIdentitySchema.Designer.cs | 3 +- .../00000000000000_CreateIdentitySchema.cs | 2 +- .../ApplicationDbContextModelSnapshot.cs | 3 +- Directory.Build.props | 1 - Directory.Build.targets | 4 - Pages/Error.cshtml.cs | 2 +- Pages/Index.cshtml.cs | 2 +- Pages/Privacy.cshtml.cs | 2 +- Pages/Shared/_Layout.cshtml | 6 +- Pages/_ViewImports.cshtml | 6 +- Program.cs | 51 +++++++++-- README.md | 84 +++++++++++++++++++ appsettings.Development.json | 25 ++++++ appsettings.json | 28 ++++++- ext/kea/kea-leases4.csv | 6 ++ ext/kea/kea-leases6.csv | 7 ++ ext/powerdns/netddi.conf | 2 + ext/systemd/netddi.service | 11 +++ ext/systemd/netddi.socket | 9 ++ global.json | 5 +- 21 files changed, 230 insertions(+), 31 deletions(-) create mode 100644 ext/kea/kea-leases4.csv create mode 100644 ext/kea/kea-leases6.csv create mode 100644 ext/powerdns/netddi.conf create mode 100644 ext/systemd/netddi.service create mode 100644 ext/systemd/netddi.socket diff --git a/Data/ApplicationDbContext.cs b/Data/ApplicationDbContext.cs index d1611ca..551a8b7 100644 --- a/Data/ApplicationDbContext.cs +++ b/Data/ApplicationDbContext.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; -namespace netddi.Data; +namespace DotNetDDI.Data; public class ApplicationDbContext : IdentityDbContext { diff --git a/Data/Migrations/00000000000000_CreateIdentitySchema.Designer.cs b/Data/Migrations/00000000000000_CreateIdentitySchema.Designer.cs index e3f5796..fc75504 100644 --- a/Data/Migrations/00000000000000_CreateIdentitySchema.Designer.cs +++ b/Data/Migrations/00000000000000_CreateIdentitySchema.Designer.cs @@ -1,12 +1,11 @@ // using System; -using netddi.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -namespace netddi.Data.Migrations +namespace DotNetDDI.Data.Migrations { [DbContext(typeof(ApplicationDbContext))] [Migration("00000000000000_CreateIdentitySchema")] diff --git a/Data/Migrations/00000000000000_CreateIdentitySchema.cs b/Data/Migrations/00000000000000_CreateIdentitySchema.cs index b76e608..a3f0be1 100644 --- a/Data/Migrations/00000000000000_CreateIdentitySchema.cs +++ b/Data/Migrations/00000000000000_CreateIdentitySchema.cs @@ -1,7 +1,7 @@ using System; using Microsoft.EntityFrameworkCore.Migrations; -namespace netddi.Data.Migrations +namespace DotNetDDI.Data.Migrations { public partial class CreateIdentitySchema : Migration { diff --git a/Data/Migrations/ApplicationDbContextModelSnapshot.cs b/Data/Migrations/ApplicationDbContextModelSnapshot.cs index 129cef9..b9ca9e4 100644 --- a/Data/Migrations/ApplicationDbContextModelSnapshot.cs +++ b/Data/Migrations/ApplicationDbContextModelSnapshot.cs @@ -1,11 +1,10 @@ // using System; -using netddi.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -namespace netddi.Data.Migrations +namespace DotNetDDI.Data.Migrations { [DbContext(typeof(ApplicationDbContext))] partial class ApplicationDbContextModelSnapshot : ModelSnapshot diff --git a/Directory.Build.props b/Directory.Build.props index a88390e..be73aad 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,5 +1,4 @@ - $(MSBuildThisFileDirectory)artifacts diff --git a/Directory.Build.targets b/Directory.Build.targets index cdf451d..8c119d5 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -1,6 +1,2 @@ - - - - diff --git a/Pages/Error.cshtml.cs b/Pages/Error.cshtml.cs index eeb40fd..f5d9d81 100644 --- a/Pages/Error.cshtml.cs +++ b/Pages/Error.cshtml.cs @@ -2,7 +2,7 @@ using System.Diagnostics; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; -namespace netddi.Pages; +namespace DotNetDDI.Pages; [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] [IgnoreAntiforgeryToken] diff --git a/Pages/Index.cshtml.cs b/Pages/Index.cshtml.cs index 5b37e19..1d4490a 100644 --- a/Pages/Index.cshtml.cs +++ b/Pages/Index.cshtml.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; -namespace netddi.Pages; +namespace DotNetDDI.Pages; public class IndexModel : PageModel { diff --git a/Pages/Privacy.cshtml.cs b/Pages/Privacy.cshtml.cs index 9d4c15b..147ad22 100644 --- a/Pages/Privacy.cshtml.cs +++ b/Pages/Privacy.cshtml.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; -namespace netddi.Pages; +namespace DotNetDDI.Pages; public class PrivacyModel : PageModel { diff --git a/Pages/Shared/_Layout.cshtml b/Pages/Shared/_Layout.cshtml index a26265e..91b20dd 100644 --- a/Pages/Shared/_Layout.cshtml +++ b/Pages/Shared/_Layout.cshtml @@ -3,7 +3,7 @@ - @ViewData["Title"] - netddi + @ViewData["Title"] - .NET DDI @@ -13,7 +13,7 @@