|
|
|
|
@ -366,7 +366,7 @@ namespace Gremlin.GremlinData.DBClasses
|
|
|
|
|
public void Configure(EntityTypeBuilder<Product> entity)
|
|
|
|
|
{
|
|
|
|
|
entity.HasKey(e => e.ProductId);
|
|
|
|
|
entity.HasOne(d => d.CustomDescription).WithOne(p => p.Product);
|
|
|
|
|
entity.HasOne(d => d.CustomDescription).WithMany(p => p.Products);
|
|
|
|
|
//entity.HasOne(p => p.ProductLine).WithMany(d => d.Products);
|
|
|
|
|
entity.Property(e => e.DataCreationDate)
|
|
|
|
|
.HasColumnType("TIMESTAMP")
|
|
|
|
|
@ -424,7 +424,7 @@ namespace Gremlin.GremlinData.DBClasses
|
|
|
|
|
public void Configure(EntityTypeBuilder<CustomDescription> entity)
|
|
|
|
|
{
|
|
|
|
|
entity.HasKey(e => e.CustomDescriptionId);
|
|
|
|
|
entity.HasOne(p => p.Product).WithOne(d => d.CustomDescription)
|
|
|
|
|
entity.HasMany(p => p.Products).WithOne(d => d.CustomDescription)
|
|
|
|
|
//.HasForeignKey("ProductId")
|
|
|
|
|
;
|
|
|
|
|
entity.Property(e => e.DataCreationDate)
|
|
|
|
|
|