5 instantiations of CatalogBrand
CatalogDb (5)
CatalogDbInitializer.cs (5)
41
new
() { Brand = "Azure" },
42
new
() { Brand = ".NET" },
43
new
() { Brand = "Visual Studio" },
44
new
() { Brand = "SQL Server" },
45
new
() { Brand = "Other" }
9 references to CatalogBrand
CatalogDb (9)
CatalogDbInitializer.cs (4)
38
static List<
CatalogBrand
> GetPreconfiguredCatalogBrands()
59
static List<CatalogItem> GetPreconfiguredItems(DbSet<
CatalogBrand
> catalogBrands, DbSet<CatalogType> catalogTypes)
61
var
dotNet = catalogBrands.First(b => b.Brand == ".NET");
62
var
other = catalogBrands.First(b => b.Brand == "Other");
Model.cs (5)
27
public DbSet<
CatalogBrand
> CatalogBrands => Set<
CatalogBrand
>();
32
DefineCatalogBrand(builder.Entity<
CatalogBrand
>());
83
private static void DefineCatalogBrand(EntityTypeBuilder<
CatalogBrand
> builder)
134
public required
CatalogBrand
CatalogBrand { get; set; }