From a8f4b4ec7c881fda709df61bb1ef259807288f27 Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Thu, 14 Nov 2024 14:47:02 -0800 Subject: [PATCH] fix: #492 and other template issues --- .../content/Coalesce.Starter.Vue.Data/AppDbContext.cs | 2 +- .../content/Coalesce.Starter.Vue.Data/DatabaseSeeder.cs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/templates/Coalesce.Vue.Template/content/Coalesce.Starter.Vue.Data/AppDbContext.cs b/templates/Coalesce.Vue.Template/content/Coalesce.Starter.Vue.Data/AppDbContext.cs index 19a6bb104..4e94a4244 100644 --- a/templates/Coalesce.Vue.Template/content/Coalesce.Starter.Vue.Data/AppDbContext.cs +++ b/templates/Coalesce.Vue.Template/content/Coalesce.Starter.Vue.Data/AppDbContext.cs @@ -84,7 +84,7 @@ public AppDbContext(DbContextOptions options) : base(options) { } public DbSet TenantMemberships => Set(); #endif -#if UserPictures +#if (Identity && UserPictures) public DbSet UserPhotos => Set(); #endif diff --git a/templates/Coalesce.Vue.Template/content/Coalesce.Starter.Vue.Data/DatabaseSeeder.cs b/templates/Coalesce.Vue.Template/content/Coalesce.Starter.Vue.Data/DatabaseSeeder.cs index e268bdf23..4d1cc5fdb 100644 --- a/templates/Coalesce.Vue.Template/content/Coalesce.Starter.Vue.Data/DatabaseSeeder.cs +++ b/templates/Coalesce.Vue.Template/content/Coalesce.Starter.Vue.Data/DatabaseSeeder.cs @@ -1,6 +1,4 @@ -using Coalesce.Starter.Vue.Data.Models; - -namespace Coalesce.Starter.Vue.Data; +namespace Coalesce.Starter.Vue.Data; public class DatabaseSeeder(AppDbContext db) {