|
|
@ -13,14 +13,12 @@ |
|
|
|
public DbSet<CatalogItem> CatalogItems { get; set; } |
|
|
|
public DbSet<CatalogBrand> CatalogBrands { get; set; } |
|
|
|
public DbSet<CatalogType> CatalogTypes { get; set; } |
|
|
|
//public DbSet<IntegrationEventLogEntry> IntegrationEventLog { get; set; }
|
|
|
|
|
|
|
|
protected override void OnModelCreating(ModelBuilder builder) |
|
|
|
{ |
|
|
|
builder.Entity<CatalogBrand>(ConfigureCatalogBrand); |
|
|
|
builder.Entity<CatalogType>(ConfigureCatalogType); |
|
|
|
builder.Entity<CatalogItem>(ConfigureCatalogItem); |
|
|
|
//builder.Entity<IntegrationEventLogEntry>(ConfigureIntegrationEventLogEntry);
|
|
|
|
} |
|
|
|
|
|
|
|
void ConfigureCatalogItem(EntityTypeBuilder<CatalogItem> builder) |
|
|
@ -79,31 +77,5 @@ |
|
|
|
.IsRequired() |
|
|
|
.HasMaxLength(100); |
|
|
|
} |
|
|
|
|
|
|
|
//void ConfigureIntegrationEventLogEntry(EntityTypeBuilder<IntegrationEventLogEntry> builder)
|
|
|
|
//{
|
|
|
|
// builder.ToTable("IntegrationEventLog");
|
|
|
|
|
|
|
|
// builder.HasKey(e => e.EventId);
|
|
|
|
|
|
|
|
// builder.Property(e => e.EventId)
|
|
|
|
// .IsRequired();
|
|
|
|
|
|
|
|
// builder.Property(e => e.Content)
|
|
|
|
// .IsRequired();
|
|
|
|
|
|
|
|
// builder.Property(e => e.CreationTime)
|
|
|
|
// .IsRequired();
|
|
|
|
|
|
|
|
// builder.Property(e => e.State)
|
|
|
|
// .IsRequired();
|
|
|
|
|
|
|
|
// builder.Property(e => e.TimesSent)
|
|
|
|
// .IsRequired();
|
|
|
|
|
|
|
|
// builder.Property(e => e.EventTypeName)
|
|
|
|
// .IsRequired();
|
|
|
|
|
|
|
|
//}
|
|
|
|
} |
|
|
|
} |