Compare commits
No commits in common. "282ba96c618c9a785ef0cc09c4d89a3b39fa0a49" and "19fdd02429a605068a3d4d2a4d8b21bd5e7b5f0a" have entirely different histories.
282ba96c61
...
19fdd02429
|
|
@ -37,8 +37,7 @@ public class DicomInstance : BaseFullAuditEntity, IEntitySeqId
|
|||
public DateTime? InstanceTime { get; set; }
|
||||
|
||||
public int NumberOfFrames { get; set; }
|
||||
|
||||
[StringLength(1000)]
|
||||
[MaxLength]
|
||||
public string Path { get; set; } = null!;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
using Microsoft.EntityFrameworkCore.Design;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.Extensions.Options;
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Context;
|
||||
|
||||
|
|
@ -13,9 +11,8 @@ public class IRaCISDBContextFactory : IDesignTimeDbContextFactory<IRaCISDBContex
|
|||
public IRaCISDBContext CreateDbContext(string[] args)
|
||||
{
|
||||
var optionsBuilder = new DbContextOptionsBuilder<IRaCISDBContext>();
|
||||
optionsBuilder.UseSqlServer("Server=106.14.89.110,1434;Database=Test_IRC_CodeFirst;User ID=sa;Password=xc@123456;TrustServerCertificate=true", contextOptionsBuilder => contextOptionsBuilder.EnableRetryOnFailure());
|
||||
//迁移的时候,不生成外键
|
||||
optionsBuilder.ReplaceService<IMigrationsSqlGenerator, NoForeignKeyMigrationsSqlGenerator>();
|
||||
optionsBuilder.UseSqlServer("Server=106.14.89.110,1435;Database=Test_IRC_CodeFirst;User ID=sa;Password=xc@123456;TrustServerCertificate=true", contextOptionsBuilder => contextOptionsBuilder.EnableRetryOnFailure());
|
||||
|
||||
return new IRaCISDBContext(optionsBuilder.Options);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
[DbContext(typeof(IRaCISDBContext))]
|
||||
[Migration("20240925064340_CodeFirst_Init")]
|
||||
[Migration("20240925025614_CodeFirst_Init")]
|
||||
partial class CodeFirst_Init
|
||||
{
|
||||
/// <inheritdoc />
|
||||
|
|
@ -830,8 +830,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|||
|
||||
b.Property<string>("Path")
|
||||
.IsRequired()
|
||||
.HasMaxLength(1000)
|
||||
.HasColumnType("nvarchar(1000)");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("PixelSpacing")
|
||||
.IsRequired()
|
||||
|
|
@ -469,7 +469,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|||
InstanceNumber = table.Column<int>(type: "int", nullable: false),
|
||||
InstanceTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
NumberOfFrames = table.Column<int>(type: "int", nullable: false),
|
||||
Path = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: false),
|
||||
Path = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
||||
PixelSpacing = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||
SeqId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
SeriesId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
|
|
@ -827,8 +827,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|||
|
||||
b.Property<string>("Path")
|
||||
.IsRequired()
|
||||
.HasMaxLength(1000)
|
||||
.HasColumnType("nvarchar(1000)");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("PixelSpacing")
|
||||
.IsRequired()
|
||||
|
|
|
|||
Loading…
Reference in New Issue