增加dicom 显示文件大小,以及修改影像下载列表适配 随机阅片
This commit is contained in:
@@ -1,81 +1,83 @@
|
||||
//using IRaCIS.Core.Domain.Models;
|
||||
//using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using IRaCIS.Core.Domain.Models;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
//namespace IRaCIS.Core.Infra.EFCore.EntityConfigration;
|
||||
namespace IRaCIS.Core.Infra.EFCore.EntityConfigration;
|
||||
|
||||
///// <summary>
|
||||
///// 医学影像 数据量大,主键是 SeqId ,Id 是自己算的,也可以作为Id,但是不是有序的,数据量大,会导致性能很差,所以是逻辑主键
|
||||
///// </summary>
|
||||
/// <summary>
|
||||
/// 医学影像 数据量大,主键是 SeqId ,Id 是自己算的,也可以作为Id,但是不是有序的,数据量大,会导致性能很差,所以是逻辑主键
|
||||
/// </summary>
|
||||
|
||||
//public class DicomStudyConfigration : IEntityTypeConfiguration<DicomStudy>
|
||||
//{
|
||||
// public void Configure(EntityTypeBuilder<DicomStudy> builder)
|
||||
// {
|
||||
// builder.HasKey(e => e.SeqId);
|
||||
// }
|
||||
//}
|
||||
public class DicomStudyConfigration : IEntityTypeConfiguration<DicomStudy>
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<DicomStudy> builder)
|
||||
{
|
||||
builder.HasKey(e => e.SeqId);
|
||||
|
||||
//public class DicomSeriesConfigration : IEntityTypeConfiguration<DicomSeries>
|
||||
//{
|
||||
// public void Configure(EntityTypeBuilder<DicomSeries> builder)
|
||||
// {
|
||||
// builder.HasKey(e => e.SeqId);
|
||||
// }
|
||||
//}
|
||||
builder.HasMany(s => s.SeriesList).WithOne(sv => sv.DicomStudy).HasForeignKey(t => t.StudyId).HasPrincipalKey(t=>t.Id);
|
||||
}
|
||||
}
|
||||
|
||||
//public class DicomInstanceConfigration : IEntityTypeConfiguration<DicomInstance>
|
||||
//{
|
||||
// public void Configure(EntityTypeBuilder<DicomInstance> builder)
|
||||
// {
|
||||
// builder.HasKey(e => e.SeqId);
|
||||
// }
|
||||
//}
|
||||
public class DicomSeriesConfigration : IEntityTypeConfiguration<DicomSeries>
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<DicomSeries> builder)
|
||||
{
|
||||
builder.HasKey(e => e.SeqId);
|
||||
}
|
||||
}
|
||||
|
||||
//public class TaskStudyConfigration : IEntityTypeConfiguration<TaskStudy>
|
||||
//{
|
||||
// public void Configure(EntityTypeBuilder<TaskStudy> builder)
|
||||
// {
|
||||
// builder.HasKey(e => e.SeqId);
|
||||
// }
|
||||
//}
|
||||
public class DicomInstanceConfigration : IEntityTypeConfiguration<DicomInstance>
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<DicomInstance> builder)
|
||||
{
|
||||
builder.HasKey(e => e.SeqId);
|
||||
}
|
||||
}
|
||||
|
||||
//public class TaskSeriesConfigration : IEntityTypeConfiguration<TaskSeries>
|
||||
//{
|
||||
// public void Configure(EntityTypeBuilder<TaskSeries> builder)
|
||||
// {
|
||||
// builder.HasKey(e => e.SeqId);
|
||||
// }
|
||||
//}
|
||||
public class TaskStudyConfigration : IEntityTypeConfiguration<TaskStudy>
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<TaskStudy> builder)
|
||||
{
|
||||
builder.HasKey(e => e.SeqId);
|
||||
}
|
||||
}
|
||||
|
||||
//public class TaskInstanceConfigration : IEntityTypeConfiguration<TaskInstance>
|
||||
//{
|
||||
// public void Configure(EntityTypeBuilder<TaskInstance> builder)
|
||||
// {
|
||||
// builder.HasKey(e => e.SeqId);
|
||||
// }
|
||||
//}
|
||||
public class TaskSeriesConfigration : IEntityTypeConfiguration<TaskSeries>
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<TaskSeries> builder)
|
||||
{
|
||||
builder.HasKey(e => e.SeqId);
|
||||
}
|
||||
}
|
||||
|
||||
public class TaskInstanceConfigration : IEntityTypeConfiguration<TaskInstance>
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<TaskInstance> builder)
|
||||
{
|
||||
builder.HasKey(e => e.SeqId);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//public class SCPStudyConfigration : IEntityTypeConfiguration<SCPStudy>
|
||||
//{
|
||||
// public void Configure(EntityTypeBuilder<SCPStudy> builder)
|
||||
// {
|
||||
// builder.HasKey(e => e.SeqId);
|
||||
// }
|
||||
//}
|
||||
public class SCPStudyConfigration : IEntityTypeConfiguration<SCPStudy>
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<SCPStudy> builder)
|
||||
{
|
||||
builder.HasKey(e => e.SeqId);
|
||||
}
|
||||
}
|
||||
|
||||
//public class SCPSeriesConfigration : IEntityTypeConfiguration<SCPSeries>
|
||||
//{
|
||||
// public void Configure(EntityTypeBuilder<SCPSeries> builder)
|
||||
// {
|
||||
// builder.HasKey(e => e.SeqId);
|
||||
// }
|
||||
//}
|
||||
public class SCPSeriesConfigration : IEntityTypeConfiguration<SCPSeries>
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<SCPSeries> builder)
|
||||
{
|
||||
builder.HasKey(e => e.SeqId);
|
||||
}
|
||||
}
|
||||
|
||||
//public class SCPInstanceConfigration : IEntityTypeConfiguration<SCPInstance>
|
||||
//{
|
||||
// public void Configure(EntityTypeBuilder<SCPInstance> builder)
|
||||
// {
|
||||
// builder.HasKey(e => e.SeqId);
|
||||
// }
|
||||
//}
|
||||
public class SCPInstanceConfigration : IEntityTypeConfiguration<SCPInstance>
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<SCPInstance> builder)
|
||||
{
|
||||
builder.HasKey(e => e.SeqId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user