diff --git a/Controllers/DocumentController.cs b/Controllers/DocumentController.cs index 944a200..8f15aba 100644 --- a/Controllers/DocumentController.cs +++ b/Controllers/DocumentController.cs @@ -1,8 +1,6 @@ -using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; -using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Snootalogue.Models; diff --git a/Data/SnootalogueContext.cs b/Data/SnootalogueContext.cs index 4972f9b..bae8982 100644 --- a/Data/SnootalogueContext.cs +++ b/Data/SnootalogueContext.cs @@ -4,7 +4,6 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Microsoft.EntityFrameworkCore.ChangeTracking; using Snootalogue.Models; using System.Text.Json; -using System.Text.Json.Serialization; using System.Collections.Generic; namespace Snootalogue.Data { diff --git a/Models/Document.cs b/Models/Document.cs index 493ba8a..29d8704 100644 --- a/Models/Document.cs +++ b/Models/Document.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; namespace Snootalogue.Models { public class Document { diff --git a/Pages/Documents/Details.cshtml.cs b/Pages/Documents/Details.cshtml.cs index e969e90..aac756c 100644 --- a/Pages/Documents/Details.cshtml.cs +++ b/Pages/Documents/Details.cshtml.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/Pages/Documents/Edit.cshtml.cs b/Pages/Documents/Edit.cshtml.cs index ed3b089..f5b310a 100644 --- a/Pages/Documents/Edit.cshtml.cs +++ b/Pages/Documents/Edit.cshtml.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; diff --git a/Pages/Index.cshtml.cs b/Pages/Index.cshtml.cs index 8a82e2a..24c11e3 100644 --- a/Pages/Index.cshtml.cs +++ b/Pages/Index.cshtml.cs @@ -1,10 +1,7 @@ -using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; -using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.EntityFrameworkCore; using Snootalogue.Models; using System.Collections.Generic; -using System.Linq; using System.Threading.Tasks; using Snootalogue.Data; diff --git a/Program.cs b/Program.cs index cfba08d..29a5fb4 100644 --- a/Program.cs +++ b/Program.cs @@ -19,7 +19,6 @@ along with this program. If not, see . using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; -using Microsoft.Extensions.Logging; using Snootalogue.Models; using System; diff --git a/ViewModels/EditDocument.cs b/ViewModels/EditDocument.cs index 2b22a4d..0014a51 100644 --- a/ViewModels/EditDocument.cs +++ b/ViewModels/EditDocument.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; // a version of the Document model designed for user editing diff --git a/appsettings.Development.json b/appsettings.Development.json index 8983e0f..afe1851 100644 --- a/appsettings.Development.json +++ b/appsettings.Development.json @@ -5,5 +5,9 @@ "Microsoft": "Warning", "Microsoft.Hosting.Lifetime": "Information" } + }, + "AllowedHosts": "*", + "ConnectionStrings": { + "SnootalogueContext": "Data Source=Snootalogue.db" } -} +} \ No newline at end of file