| 12345678910111213141516171819202122 |
- using Domain.Entities.Stocks;
- using Microsoft.EntityFrameworkCore;
- using Microsoft.EntityFrameworkCore.Metadata.Builders;
- namespace Infrastructure.Persistence.Configurations.Stocks;
- public sealed class BondIssuanceConfiguration : IEntityTypeConfiguration<BondIssuance>
- {
- public void Configure(EntityTypeBuilder<BondIssuance> builder)
- {
- builder.ToTable(nameof(BondIssuance), t => t.HasComment("SEIBro 채권 발행내역 (getBondIssuInfo) — 회사채·주식관련사채. BondMaster rolling 발견 소스"));
- builder.HasKey(x => x.ID);
- builder.HasIndex(x => x.Isin).IsUnique();
- builder.HasIndex(x => x.IssuDt);
- builder.Property(x => x.IssuDt).IsRequired().HasComment("발행일자 (ISSU_DT)");
- builder.Property(x => x.IssucoCustno).HasComment("발행회사고객번호 (ISSUCO_CUSTNO)");
- builder.Property(x => x.IssucoCustNm).HasMaxLength(100).HasComment("발행회사 명칭 (ISSUCO_CUST_NM)");
- builder.Property(x => x.Isin).HasMaxLength(12).IsRequired().HasComment("종목코드 (ISIN)");
- builder.Property(x => x.KorSecnNm).HasMaxLength(100).HasComment("한글종목명 (KOR_SECN_NM)");
- }
- }
|