4 instantiations of CatalogType
CatalogDb (4)
CatalogDbInitializer.cs (4)
52new() { Type = "Mug" }, 53new() { Type = "T-Shirt" }, 54new() { Type = "Sheet" }, 55new() { Type = "USB Memory Stick" }
10 references to CatalogType
CatalogDb (10)
CatalogDbInitializer.cs (5)
49static List<CatalogType> GetPreconfiguredCatalogTypes() 59static List<CatalogItem> GetPreconfiguredItems(DbSet<CatalogBrand> catalogBrands, DbSet<CatalogType> catalogTypes) 64var mug = catalogTypes.First(c => c.Type == "Mug"); 65var tshirt = catalogTypes.First(c => c.Type == "T-Shirt"); 66var sheet = catalogTypes.First(c => c.Type == "Sheet");
Model.cs (5)
28public DbSet<CatalogType> CatalogTypes => Set<CatalogType>(); 36DefineCatalogType(builder.Entity<CatalogType>()); 39private static void DefineCatalogType(EntityTypeBuilder<CatalogType> builder) 131public required CatalogType CatalogType { get; set; }