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