* Added VatCodeAssociation

This commit is contained in:
2025-08-22 07:01:13 +02:00
parent eb40cc35fe
commit 8c646d4bc7
8 changed files with 492 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ namespace SytelineSaAppEfDataModel
public DbSet<Customer> Customers { get; set; }
public DbSet<CustomerTp> CustomerTps { get; set; }
public DbSet<Item> Items { get; set; }
public DbSet<VatCodeAssociation> VatCodeAssociations { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
@@ -1988,6 +1989,316 @@ namespace SytelineSaAppEfDataModel
.HasDatabaseName("IX_item_RowPointer")
.IsUnique();
});
modelBuilder.Entity<VatCodeAssociation>(entity =>
{
entity.ToTable("ZPL_VAT_CodesAssociations");
entity.HasKey(e => new { e.VATRegisterType, e.EndUserType, e.Category, e.ProdCode });
entity.Property(e => e.VATRegisterType)
.HasColumnName("VATRegisterType")
.HasMaxLength(20)
.IsRequired();
entity.Property(e => e.EndUserType)
.HasColumnName("end_user_type")
.HasMaxLength(6)
.IsRequired();
entity.Property(e => e.Category)
.HasColumnName("category")
.HasMaxLength(20)
.IsRequired();
entity.Property(e => e.ProdCode)
.HasColumnName("prod_code")
.HasMaxLength(10)
.IsRequired();
entity.Property(e => e.TaxCode)
.HasColumnName("tax_code")
.HasMaxLength(12)
.IsRequired();
entity.Property(e => e.VATRegisterCode)
.HasColumnName("VATRegisterCode")
.HasMaxLength(20)
.IsRequired();
entity.Property(e => e.InWorkflow)
.HasColumnName("InWorkflow")
.HasColumnType("tinyint")
.IsRequired();
entity.Property(e => e.NoteExistsFlag)
.HasColumnName("NoteExistsFlag")
.HasColumnType("tinyint")
.IsRequired();
entity.Property(e => e.RecordDate)
.HasColumnName("RecordDate")
.IsRequired();
entity.Property(e => e.RowPointer)
.HasColumnName("RowPointer")
.HasColumnType("uniqueidentifier")
.IsRequired();
entity.Property(e => e.CreatedBy)
.HasColumnName("CreatedBy")
.HasMaxLength(60)
.IsRequired();
entity.Property(e => e.UpdatedBy)
.HasColumnName("UpdatedBy")
.HasMaxLength(60)
.IsRequired();
entity.Property(e => e.CreateDate)
.HasColumnName("CreateDate")
.IsRequired();
entity.Property(e => e.Uf_ZPL_CodesCgsAcct)
.HasColumnName("uf_ZPL_CodesCgsAcct")
.HasMaxLength(12)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesCgsAcctUnit1)
.HasColumnName("uf_ZPL_CodesCgsAcctUnit1")
.HasMaxLength(6)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesCgsAcctUnit2)
.HasColumnName("uf_ZPL_CodesCgsAcctUnit2")
.HasMaxLength(6)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesCgsAcctUnit3)
.HasColumnName("uf_ZPL_CodesCgsAcctUnit3")
.HasMaxLength(6)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesCgsAcctUnit4)
.HasColumnName("uf_ZPL_CodesCgsAcctUnit4")
.HasMaxLength(6)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesCgsDescription)
.HasColumnName("uf_ZPL_CodesCgsDescription")
.HasMaxLength(200)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesCgsFovhdAcct)
.HasColumnName("uf_ZPL_CodesCgsFovhdAcct")
.HasMaxLength(12)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesCgsFovhdAcctUnit1)
.HasColumnName("uf_ZPL_CodesCgsFovhdAcctUnit1")
.HasMaxLength(6)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesCgsFovhdAcctUnit2)
.HasColumnName("uf_ZPL_CodesCgsFovhdAcctUnit2")
.HasMaxLength(6)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesCgsFovhdAcctUnit3)
.HasColumnName("uf_ZPL_CodesCgsFovhdAcctUnit3")
.HasMaxLength(6)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesCgsFovhdAcctUnit4)
.HasColumnName("uf_ZPL_CodesCgsFovhdAcctUnit4")
.HasMaxLength(6)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesCgsFovhdDescription)
.HasColumnName("uf_ZPL_CodesCgsFovhdDescription")
.HasMaxLength(200)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesCgsLbrAcct)
.HasColumnName("uf_ZPL_CodesCgsLbrAcct")
.HasMaxLength(12)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesCgsLbrAcctUnit1)
.HasColumnName("uf_ZPL_CodesCgsLbrAcctUnit1")
.HasMaxLength(6)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesCgsLbrAcctUnit2)
.HasColumnName("uf_ZPL_CodesCgsLbrAcctUnit2")
.HasMaxLength(6)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesCgsLbrAcctUnit3)
.HasColumnName("uf_ZPL_CodesCgsLbrAcctUnit3")
.HasMaxLength(6)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesCgsLbrAcctUnit4)
.HasColumnName("uf_ZPL_CodesCgsLbrAcctUnit4")
.HasMaxLength(6)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesCgsLbrDescription)
.HasColumnName("uf_ZPL_CodesCgsLbrDescription")
.HasMaxLength(200)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesCgsVovhdAcct)
.HasColumnName("uf_ZPL_CodesCgsVovhdAcct")
.HasMaxLength(12)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesCgsVovhdAcctUnit1)
.HasColumnName("uf_ZPL_CodesCgsVovhdAcctUnit1")
.HasMaxLength(6)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesCgsVovhdAcctUnit2)
.HasColumnName("uf_ZPL_CodesCgsVovhdAcctUnit2")
.HasMaxLength(6)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesCgsVovhdAcctUnit3)
.HasColumnName("uf_ZPL_CodesCgsVovhdAcctUnit3")
.HasMaxLength(6)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesCgsVovhdAcctUnit4)
.HasColumnName("uf_ZPL_CodesCgsVovhdAcctUnit4")
.HasMaxLength(6)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesCgsVovhdDescription)
.HasColumnName("uf_ZPL_CodesCgsVovhdDescription")
.HasMaxLength(200)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesCOGSVarsAcct)
.HasColumnName("uf_ZPL_CodesCOGSVarsAcct")
.HasMaxLength(12)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesCOGSVarsAcctUnit1)
.HasColumnName("uf_ZPL_CodesCOGSVarsAcctUnit1")
.HasMaxLength(6)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesCOGSVarsAcctUnit2)
.HasColumnName("uf_ZPL_CodesCOGSVarsAcctUnit2")
.HasMaxLength(6)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesCOGSVarsAcctUnit3)
.HasColumnName("uf_ZPL_CodesCOGSVarsAcctUnit3")
.HasMaxLength(6)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesCOGSVarsAcctUnit4)
.HasColumnName("uf_ZPL_CodesCOGSVarsAcctUnit4")
.HasMaxLength(6)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesCOGVarsDescription)
.HasColumnName("uf_ZPL_CodesCOGVarsDescription")
.HasMaxLength(200)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesOutAcct)
.HasColumnName("uf_ZPL_CodesOutAcct")
.HasMaxLength(12)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesOutAcctUnit1)
.HasColumnName("uf_ZPL_CodesOutAcctUnit1")
.HasMaxLength(6)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesOutAcctUnit2)
.HasColumnName("uf_ZPL_CodesOutAcctUnit2")
.HasMaxLength(6)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesOutAcctUnit3)
.HasColumnName("uf_ZPL_CodesOutAcctUnit3")
.HasMaxLength(6)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesOutAcctUnit4)
.HasColumnName("uf_ZPL_CodesOutAcctUnit4")
.HasMaxLength(6)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesOutDescription)
.HasColumnName("uf_ZPL_CodesOutDescription")
.HasMaxLength(200)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesSaleDsAcct)
.HasColumnName("uf_ZPL_CodesSaleDsAcct")
.HasMaxLength(12)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesSaleDsAcctUnit1)
.HasColumnName("uf_ZPL_CodesSaleDsAcctUnit1")
.HasMaxLength(6)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesSaleDsAcctUnit2)
.HasColumnName("uf_ZPL_CodesSaleDsAcctUnit2")
.HasMaxLength(6)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesSaleDsAcctUnit3)
.HasColumnName("uf_ZPL_CodesSaleDsAcctUnit3")
.HasMaxLength(6)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesSaleDsAcctUnit4)
.HasColumnName("uf_ZPL_CodesSaleDsAcctUnit4")
.HasMaxLength(6)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesSaleDsDescription)
.HasColumnName("uf_ZPL_CodesSaleDsDescription")
.HasMaxLength(200)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesSalesAcct)
.HasColumnName("uf_ZPL_CodesSalesAcct")
.HasMaxLength(12)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesSalesAcctUnit1)
.HasColumnName("uf_ZPL_CodesSalesAcctUnit1")
.HasMaxLength(6)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesSalesAcctUnit2)
.HasColumnName("uf_ZPL_CodesSalesAcctUnit2")
.HasMaxLength(6)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesSalesAcctUnit3)
.HasColumnName("uf_ZPL_CodesSalesAcctUnit3")
.HasMaxLength(6)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesSalesAcctUnit4)
.HasColumnName("uf_ZPL_CodesSalesAcctUnit4")
.HasMaxLength(6)
.IsRequired(false);
entity.Property(e => e.Uf_ZPL_CodesSalesDescription)
.HasColumnName("uf_ZPL_CodesSalesDescription")
.HasMaxLength(200)
.IsRequired(false);
});
}
}
}