修改非dicom
This commit is contained in:
+5
-1
@@ -1,10 +1,15 @@
|
||||
using System;
|
||||
using IRaCIS.Core.Domain.Models;
|
||||
using IRaCIS.Core.Domain.Share;
|
||||
using Microsoft.EntityFrameworkCore.ChangeTracking;
|
||||
using Microsoft.EntityFrameworkCore.ValueGeneration;
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.ValueGenerator
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 上传监控 时间间隔存储 需要按照这个字段进行排序
|
||||
/// </summary>
|
||||
public class UploadTotalMillisecondsInterval : ValueGenerator<int>
|
||||
{
|
||||
|
||||
@@ -13,7 +18,6 @@ namespace IRaCIS.Core.Infra.EFCore.ValueGenerator
|
||||
|
||||
//modelBuilder.Entity<StudyMonitor>().Property(e => e.TestInterval).ValueGeneratedOnAddOrUpdate().HasDefaultValueSql("datediff(MS,UploadStartTime,UploadFinishedTime)");
|
||||
|
||||
|
||||
public override int Next(EntityEntry entry)
|
||||
{
|
||||
if (entry.Entity is StudyMonitor entity)
|
||||
|
||||
Reference in New Issue
Block a user