diff --git a/src/UDS.Net.API.Client/UDS.Net.API.Client.csproj b/src/UDS.Net.API.Client/UDS.Net.API.Client.csproj index b16e10f..0d9f165 100644 --- a/src/UDS.Net.API.Client/UDS.Net.API.Client.csproj +++ b/src/UDS.Net.API.Client/UDS.Net.API.Client.csproj @@ -4,13 +4,13 @@ netstandard2.1 Library UDS.Net.API.Client - 2.0.0-preview.2 + 2.0.0 Sanders-Brown Center on Aging UDS client library for using UDS.Net.API UK-SBCoA Client library for API https://github.com/UK-SBCoA/uniform-data-set-dotnet-api - 2.0.0-preview.2 + 2.0.0 diff --git a/src/UDS.Net.API/Data/Migrations/20240222172231_AddSQLViewForFormSummaries.cs b/src/UDS.Net.API/Data/Migrations/20240222172231_AddSQLViewForFormSummaries.cs deleted file mode 100644 index a5f9c10..0000000 --- a/src/UDS.Net.API/Data/Migrations/20240222172231_AddSQLViewForFormSummaries.cs +++ /dev/null @@ -1,83 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace UDS.Net.API.Data.Migrations -{ - /// - public partial class AddSQLViewForFormSummaries : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.Sql(@" - CREATE VIEW vw_FormStatuses - AS - SELECT a1.[FormId], a1.[VisitId], a1.[Status], a1.[LANG], a1.[SUB], a1.[NOT], 'A1' as Kind, a1.[CreatedAt], a1.[CreatedBy], a1.[ModifiedBy], a1.[DeletedBy], a1.[IsDeleted] - FROM dbo.tbl_A1s as a1 - UNION - SELECT a1a.[FormId], a1a.[VisitId], a1a.[Status], a1a.[LANG], a1a.[SUB], a1a.[NOT], 'A1a' as Kind, a1a.[CreatedAt], a1a.[CreatedBy], a1a.[ModifiedBy], a1a.[DeletedBy], a1a.[IsDeleted] - FROM dbo.tbl_A1as as a1a - UNION - SELECT a2.[FormId], a2.[VisitId], a2.[Status], a2.[LANG], a2.[SUB], a2.[NOT], 'A2' as Kind, a2.[CreatedAt], a2.[CreatedBy], a2.[ModifiedBy], a2.[DeletedBy], a2.[IsDeleted] - FROM dbo.tbl_A2s as a2 - UNION - SELECT a3.[FormId], a3.[VisitId], a3.[Status], a3.[LANG], a3.[SUB], a3.[NOT], 'A3' as Kind, a3.[CreatedAt], a3.[CreatedBy], a3.[ModifiedBy], a3.[DeletedBy], a3.[IsDeleted] - FROM dbo.tbl_A3s as a3 - UNION - SELECT a4.[FormId], a4.[VisitId], a4.[Status], a4.[LANG], a4.[SUB], a4.[NOT], 'A4' as Kind, a4.[CreatedAt], a4.[CreatedBy], a4.[ModifiedBy], a4.[DeletedBy], a4.[IsDeleted] - FROM dbo.tbl_A4s as a4 - UNION - SELECT a4a.[FormId], a4a.[VisitId], a4a.[Status], a4a.[LANG], a4a.[SUB], a4a.[NOT], 'A4a' as Kind, a4a.[CreatedAt], a4a.[CreatedBy], a4a.[ModifiedBy], a4a.[DeletedBy], a4a.[IsDeleted] - FROM dbo.tbl_A4as as a4a - UNION - SELECT a5d2.[FormId], a5d2.[VisitId], a5d2.[Status], a5d2.[LANG], a5d2.[SUB], a5d2.[NOT], 'A5D2' as Kind, a5d2.[CreatedAt], a5d2.[CreatedBy], a5d2.[ModifiedBy], a5d2.[DeletedBy], a5d2.[IsDeleted] - FROM dbo.tbl_A5D2s as a5d2 - UNION - SELECT b1.[FormId], b1.[VisitId], b1.[Status], b1.[LANG], b1.[SUB], b1.[NOT], 'B1' as Kind, b1.[CreatedAt], b1.[CreatedBy], b1.[ModifiedBy], b1.[DeletedBy], b1.[IsDeleted] - FROM dbo.tbl_B1s as b1 - UNION - SELECT b3.[FormId], b3.[VisitId], b3.[Status], b3.[LANG], b3.[SUB], b3.[NOT], 'B3' as Kind, b3.[CreatedAt], b3.[CreatedBy], b3.[ModifiedBy], b3.[DeletedBy], b3.[IsDeleted] - FROM dbo.tbl_B3s as b3 - UNION - SELECT b4.[FormId], b4.[VisitId], b4.[Status], b4.[LANG], b4.[SUB], b4.[NOT], 'B4' as Kind, b4.[CreatedAt], b4.[CreatedBy], b4.[ModifiedBy], b4.[DeletedBy], b4.[IsDeleted] - FROM dbo.tbl_B4s as b4 - UNION - SELECT b5.[FormId], b5.[VisitId], b5.[Status], b5.[LANG], b5.[SUB], b5.[NOT], 'B5' as Kind, b5.[CreatedAt], b5.[CreatedBy], b5.[ModifiedBy], b5.[DeletedBy], b5.[IsDeleted] - FROM dbo.tbl_B5s as b5 - UNION - SELECT b6.[FormId], b6.[VisitId], b6.[Status], b6.[LANG], b6.[SUB], b6.[NOT], 'B6' as Kind, b6.[CreatedAt], b6.[CreatedBy], b6.[ModifiedBy], b6.[DeletedBy], b6.[IsDeleted] - FROM dbo.tbl_B6s as b6 - UNION - SELECT b7.[FormId], b7.[VisitId], b7.[Status], b7.[LANG], b7.[SUB], b7.[NOT], 'B7' as Kind, b7.[CreatedAt], b7.[CreatedBy], b7.[ModifiedBy], b7.[DeletedBy], b7.[IsDeleted] - FROM dbo.tbl_B7s as b7 - UNION - SELECT b8.[FormId], b8.[VisitId], b8.[Status], b8.[LANG], b8.[SUB], b8.[NOT], 'B8' as Kind, b8.[CreatedAt], b8.[CreatedBy], b8.[ModifiedBy], b8.[DeletedBy], b8.[IsDeleted] - FROM dbo.tbl_B8s as b8 - UNION - SELECT b9.[FormId], b9.[VisitId], b9.[Status], b9.[LANG], b9.[SUB], b9.[NOT], 'B9' as Kind, b9.[CreatedAt], b9.[CreatedBy], b9.[ModifiedBy], b9.[DeletedBy], b9.[IsDeleted] - FROM dbo.tbl_B9s as b9 - UNION - SELECT c1.[FormId], c1.[VisitId], c1.[Status], c1.[LANG], c1.[SUB], c1.[NOT], 'C1' as Kind, c1.[CreatedAt], c1.[CreatedBy], c1.[ModifiedBy], c1.[DeletedBy], c1.[IsDeleted] - FROM dbo.tbl_C1s as c1 - UNION - SELECT c2.[FormId], c2.[VisitId], c2.[Status], c2.[LANG], c2.[SUB], c2.[NOT], 'C2' as Kind, c2.[CreatedAt], c2.[CreatedBy], c2.[ModifiedBy], c2.[DeletedBy], c2.[IsDeleted] - FROM dbo.tbl_C2s as c2 - UNION - SELECT d1.[FormId], d1.[VisitId], d1.[Status], d1.[LANG], d1.[SUB], d1.[NOT], 'D1' as Kind, d1.[CreatedAt], d1.[CreatedBy], d1.[ModifiedBy], d1.[DeletedBy], d1.[IsDeleted] - FROM dbo.tbl_D1s as d1 - UNION - SELECT t1.[FormId], t1.[VisitId], t1.[Status], t1.[LANG], t1.[SUB], t1.[NOT], 'T1' as Kind, t1.[CreatedAt], t1.[CreatedBy], t1.[ModifiedBy], t1.[DeletedBy], t1.[IsDeleted] - FROM dbo.tbl_T1s as t1; - "); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.Sql(@" - DROP VIEW dbo.vw_FormStatuses; - "); - } - } -} diff --git a/src/UDS.Net.API/Data/Migrations/20240222153133_InitialMigrationsForUDS4.Designer.cs b/src/UDS.Net.API/Data/Migrations/20240223172157_InitialMigrationsForUDS4.Designer.cs similarity index 92% rename from src/UDS.Net.API/Data/Migrations/20240222153133_InitialMigrationsForUDS4.Designer.cs rename to src/UDS.Net.API/Data/Migrations/20240223172157_InitialMigrationsForUDS4.Designer.cs index e05123c..6fa7675 100644 --- a/src/UDS.Net.API/Data/Migrations/20240222153133_InitialMigrationsForUDS4.Designer.cs +++ b/src/UDS.Net.API/Data/Migrations/20240223172157_InitialMigrationsForUDS4.Designer.cs @@ -12,7 +12,7 @@ namespace UDS.Net.API.Data.Migrations { [DbContext(typeof(ApiDbContext))] - [Migration("20240222153133_InitialMigrationsForUDS4")] + [Migration("20240223172157_InitialMigrationsForUDS4")] partial class InitialMigrationsForUDS4 { /// @@ -30,7 +30,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -267,7 +268,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(true) - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("LIVSITUA") .HasColumnType("int"); @@ -277,7 +279,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MARISTAT") .HasColumnType("int"); @@ -294,6 +297,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("MEMWORS") .HasColumnType("int"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -371,7 +379,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("SERVED") .HasColumnType("int"); @@ -407,10 +426,12 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.Property("ZIP") .HasMaxLength(3) @@ -429,7 +450,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -614,7 +636,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("LESSCOURT") .HasColumnType("int") @@ -630,7 +653,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MISSEDFUP") .HasColumnType("int") @@ -640,6 +664,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasColumnType("int") .HasComment("19. I miss having people around"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -669,7 +698,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("SAFECOMM") .HasColumnType("int") @@ -686,7 +726,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("THREATENED") .HasColumnType("int") @@ -713,7 +754,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasComment("6. In the past 30 days, how often has a lack of transportation kept you from medical appointments or from doing things needed for daily living?"); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -728,7 +770,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -781,11 +824,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); + + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -795,15 +845,28 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -818,7 +881,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -858,14 +922,16 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("KIDS") .HasColumnType("int"); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MOMAGEO") .HasColumnType("int"); @@ -885,6 +951,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("MOMYOB") .HasColumnType("int"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -899,7 +970,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("SIBS") .HasColumnType("int"); @@ -907,10 +989,12 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -925,7 +1009,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -947,26 +1032,46 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); + + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -981,7 +1086,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -1016,29 +1122,49 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); + + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("TRTBIOMARK") .HasColumnType("int"); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -1053,7 +1179,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -1504,7 +1631,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("KIDNEY") .HasColumnType("int") @@ -1528,7 +1656,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MAJORDEP") .HasColumnType("int") @@ -1542,6 +1671,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasColumnType("int") .HasComment("Multiple sclerosis"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -1691,7 +1825,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("SCHIZ") .HasColumnType("int") @@ -1736,7 +1881,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("THYROID") .HasColumnType("int") @@ -1759,7 +1905,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasComment("Age at most recent heart valve replacement or repair procedure"); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -1774,7 +1921,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -1841,26 +1989,46 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); + + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.Property("WAIST1") .HasColumnType("int") @@ -1887,7 +2055,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -1962,7 +2131,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("LEGLF") .HasColumnType("int"); @@ -1980,7 +2150,13 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); + + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -2039,7 +2215,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("SPEECH") .HasColumnType("int"); @@ -2051,7 +2238,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("TAPSLF") .HasColumnType("int"); @@ -2120,7 +2308,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasColumnType("nvarchar(60)"); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -2135,7 +2324,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -2172,18 +2362,25 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("JUDGMENT") .HasColumnType("decimal(2,1)"); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MEMORY") .HasColumnType("decimal(2,1)"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -2195,15 +2392,28 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -2218,7 +2428,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -2297,11 +2508,13 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MOT") .HasColumnType("int"); @@ -2309,6 +2522,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("MOTSEV") .HasColumnType("int"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -2327,15 +2545,28 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -2350,7 +2581,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -2399,15 +2631,22 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MEMPROB") .HasColumnType("int"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -2416,7 +2655,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("SATIS") .HasColumnType("int"); @@ -2430,10 +2680,12 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.Property("WONDRFUL") .HasColumnType("int"); @@ -2454,7 +2706,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -2482,15 +2735,22 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MEALPREP") .HasColumnType("int"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -2502,7 +2762,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("SHOPPING") .HasColumnType("int"); @@ -2513,7 +2784,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("TAXES") .HasColumnType("int"); @@ -2522,7 +2794,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasColumnType("int"); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -2537,7 +2810,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -2599,7 +2873,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("LIMBAPRAX") .HasColumnType("int"); @@ -2612,7 +2887,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MASKING") .HasColumnType("int"); @@ -2620,6 +2896,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("MYOCLON") .HasColumnType("int"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -2652,7 +2933,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("SLOWINGFM") .HasColumnType("int"); @@ -2666,7 +2958,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("TREMKINE") .HasColumnType("int"); @@ -2690,7 +2983,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasColumnType("int"); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -2705,7 +2999,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -2934,11 +3229,13 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MOFACE") .HasColumnType("int") @@ -2988,6 +3285,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasColumnType("int") .HasComment("Indicate whether the participant currently has meaningful changes in motor function — Tremor"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -3022,7 +3324,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("SEDUSE") .HasColumnType("bit") @@ -3031,10 +3344,12 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -3049,7 +3364,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -3089,7 +3405,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("LOGIDAY") .HasColumnType("int"); @@ -3108,7 +3425,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MEMTIME") .HasColumnType("int"); @@ -3147,6 +3465,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("MMSEVIS") .HasColumnType("int"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -3165,12 +3488,24 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("TRAILA") .HasColumnType("int"); @@ -3230,7 +3565,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasColumnType("int"); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -3245,7 +3581,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -3342,11 +3679,13 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MINTPCNC") .HasColumnType("int"); @@ -3457,6 +3796,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("MOCAVIS") .HasColumnType("int"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -3563,12 +3907,24 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("TRAILA") .HasColumnType("int"); @@ -3631,7 +3987,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasColumnType("int"); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -3646,7 +4003,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -3891,7 +4249,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("LBDIF") .HasColumnType("int"); @@ -3904,7 +4263,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MCIAMEM") .HasColumnType("int"); @@ -3969,6 +4329,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("MSAIF") .HasColumnType("int"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -4056,7 +4421,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("SCHIZOIF") .HasColumnType("int"); @@ -4073,7 +4449,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("TAUPETAD") .HasColumnType("int"); @@ -4082,7 +4459,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasColumnType("int"); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -4120,7 +4498,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("UDS.Net.API.Entities.FormStatus", b => { b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.Property("Kind") .HasMaxLength(2) @@ -4139,30 +4518,50 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); + + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.HasKey("VisitId", "Kind"); @@ -4331,7 +4730,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -4350,23 +4750,42 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); + + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("TELCOG") .HasColumnType("int"); @@ -4400,7 +4819,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasColumnType("int"); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -4464,40 +4884,34 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("UDS.Net.API.Entities.A1", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("A1") .HasForeignKey("UDS.Net.API.Entities.A1", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.A1a", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("A1a") .HasForeignKey("UDS.Net.API.Entities.A1a", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.A2", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("A2") .HasForeignKey("UDS.Net.API.Entities.A2", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.A3", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("A3") .HasForeignKey("UDS.Net.API.Entities.A3", "VisitId") .OnDelete(DeleteBehavior.Cascade) @@ -5762,13 +6176,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Navigation("SIB9") .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.A4", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("A4") .HasForeignKey("UDS.Net.API.Entities.A4", "VisitId") .OnDelete(DeleteBehavior.Cascade) @@ -6853,13 +7265,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Navigation("RXNORMID9") .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.A4a", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("A4a") .HasForeignKey("UDS.Net.API.Entities.A4a", "VisitId") .OnDelete(DeleteBehavior.Cascade) @@ -7464,151 +7874,123 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Navigation("Treatment8") .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.A5D2", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("A5D2") .HasForeignKey("UDS.Net.API.Entities.A5D2", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.B1", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("B1") .HasForeignKey("UDS.Net.API.Entities.B1", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.B3", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("B3") .HasForeignKey("UDS.Net.API.Entities.B3", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.B4", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("B4") .HasForeignKey("UDS.Net.API.Entities.B4", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.B5", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("B5") .HasForeignKey("UDS.Net.API.Entities.B5", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.B6", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("B6") .HasForeignKey("UDS.Net.API.Entities.B6", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.B7", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("B7") .HasForeignKey("UDS.Net.API.Entities.B7", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.B8", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("B8") .HasForeignKey("UDS.Net.API.Entities.B8", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.B9", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("B9") .HasForeignKey("UDS.Net.API.Entities.B9", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.C1", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("C1") .HasForeignKey("UDS.Net.API.Entities.C1", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.C2", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("C2") .HasForeignKey("UDS.Net.API.Entities.C2", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.D1", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("D1") .HasForeignKey("UDS.Net.API.Entities.D1", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.FormStatus", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithMany("FormStatuses") .HasForeignKey("VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.M1", b => @@ -7624,13 +8006,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("UDS.Net.API.Entities.T1", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("T1") .HasForeignKey("UDS.Net.API.Entities.T1", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.Visit", b => diff --git a/src/UDS.Net.API/Data/Migrations/20240222153133_InitialMigrationsForUDS4.cs b/src/UDS.Net.API/Data/Migrations/20240223172157_InitialMigrationsForUDS4.cs similarity index 97% rename from src/UDS.Net.API/Data/Migrations/20240222153133_InitialMigrationsForUDS4.cs rename to src/UDS.Net.API/Data/Migrations/20240223172157_InitialMigrationsForUDS4.cs index 7ff0e75..fd6c808 100644 --- a/src/UDS.Net.API/Data/Migrations/20240222153133_InitialMigrationsForUDS4.cs +++ b/src/UDS.Net.API/Data/Migrations/20240223172157_InitialMigrationsForUDS4.cs @@ -130,6 +130,14 @@ protected override void Up(MigrationBuilder migrationBuilder) { FormId = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), + VisitId = table.Column(type: "int", nullable: false), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), + LANG = table.Column(type: "int", nullable: true), + MODE = table.Column(type: "int", nullable: true), + REMOTEMODE = table.Column(type: "int", nullable: true), + REMOTEREASON = table.Column(type: "int", nullable: true), + SUB = table.Column(type: "bit", nullable: true), + NOT = table.Column(type: "int", nullable: true), OWNSCAR = table.Column(type: "int", nullable: true, comment: "1. Do you or someone in your household currently own a car?"), TRSPACCESS = table.Column(type: "int", nullable: true, comment: "2. Do you have consistent access to transportation?"), TRANSPROB = table.Column(type: "int", nullable: true, comment: "3. In the past 30 days, how often were you not able to leave the house when you wanted to because of a problem with transportation?"), @@ -195,12 +203,7 @@ protected override void Up(MigrationBuilder migrationBuilder) CreatedBy = table.Column(type: "nvarchar(max)", nullable: false), ModifiedBy = table.Column(type: "nvarchar(max)", nullable: true), DeletedBy = table.Column(type: "nvarchar(max)", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false), - VisitId = table.Column(type: "int", nullable: false), - Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), - LANG = table.Column(type: "int", nullable: true), - SUB = table.Column(type: "bit", nullable: true), - NOT = table.Column(type: "int", nullable: true) + IsDeleted = table.Column(type: "bit", nullable: false) }, constraints: table => { @@ -219,6 +222,14 @@ protected override void Up(MigrationBuilder migrationBuilder) { FormId = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), + VisitId = table.Column(type: "int", nullable: false), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), + LANG = table.Column(type: "int", nullable: true), + MODE = table.Column(type: "int", nullable: true), + REMOTEMODE = table.Column(type: "int", nullable: true), + REMOTEREASON = table.Column(type: "int", nullable: true), + SUB = table.Column(type: "bit", nullable: false, defaultValue: true), + NOT = table.Column(type: "int", nullable: true), BIRTHMO = table.Column(type: "int", nullable: true), BIRTHYR = table.Column(type: "int", nullable: true), CHLDHDCTRY = table.Column(type: "nvarchar(3)", maxLength: 3, nullable: true), @@ -331,12 +342,7 @@ protected override void Up(MigrationBuilder migrationBuilder) CreatedBy = table.Column(type: "nvarchar(max)", nullable: false), ModifiedBy = table.Column(type: "nvarchar(max)", nullable: true), DeletedBy = table.Column(type: "nvarchar(max)", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false), - VisitId = table.Column(type: "int", nullable: false), - Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), - LANG = table.Column(type: "int", nullable: true), - SUB = table.Column(type: "bit", nullable: false, defaultValue: true), - NOT = table.Column(type: "int", nullable: true) + IsDeleted = table.Column(type: "bit", nullable: false) }, constraints: table => { @@ -355,6 +361,14 @@ protected override void Up(MigrationBuilder migrationBuilder) { FormId = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), + VisitId = table.Column(type: "int", nullable: false), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), + LANG = table.Column(type: "int", nullable: true), + MODE = table.Column(type: "int", nullable: true), + REMOTEMODE = table.Column(type: "int", nullable: true), + REMOTEREASON = table.Column(type: "int", nullable: true), + SUB = table.Column(type: "bit", nullable: true), + NOT = table.Column(type: "int", nullable: true), NEWINF = table.Column(type: "int", nullable: true), INRELTO = table.Column(type: "int", nullable: true), INKNOWN = table.Column(type: "int", nullable: true), @@ -371,12 +385,7 @@ protected override void Up(MigrationBuilder migrationBuilder) CreatedBy = table.Column(type: "nvarchar(max)", nullable: false), ModifiedBy = table.Column(type: "nvarchar(max)", nullable: true), DeletedBy = table.Column(type: "nvarchar(max)", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false), - VisitId = table.Column(type: "int", nullable: false), - Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), - LANG = table.Column(type: "int", nullable: true), - SUB = table.Column(type: "bit", nullable: true), - NOT = table.Column(type: "int", nullable: true) + IsDeleted = table.Column(type: "bit", nullable: false) }, constraints: table => { @@ -395,6 +404,14 @@ protected override void Up(MigrationBuilder migrationBuilder) { FormId = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), + VisitId = table.Column(type: "int", nullable: false), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), + LANG = table.Column(type: "int", nullable: true), + MODE = table.Column(type: "int", nullable: true), + REMOTEMODE = table.Column(type: "int", nullable: true), + REMOTEREASON = table.Column(type: "int", nullable: true), + SUB = table.Column(type: "bit", nullable: true), + NOT = table.Column(type: "int", nullable: true), AFFFAMM = table.Column(type: "int", nullable: true), NWINFMUT = table.Column(type: "int", nullable: true), MOMYOB = table.Column(type: "int", nullable: true), @@ -627,12 +644,7 @@ protected override void Up(MigrationBuilder migrationBuilder) CreatedBy = table.Column(type: "nvarchar(max)", nullable: false), ModifiedBy = table.Column(type: "nvarchar(max)", nullable: true), DeletedBy = table.Column(type: "nvarchar(max)", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false), - VisitId = table.Column(type: "int", nullable: false), - Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), - LANG = table.Column(type: "int", nullable: true), - SUB = table.Column(type: "bit", nullable: true), - NOT = table.Column(type: "int", nullable: true) + IsDeleted = table.Column(type: "bit", nullable: false) }, constraints: table => { @@ -651,6 +663,14 @@ protected override void Up(MigrationBuilder migrationBuilder) { FormId = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), + VisitId = table.Column(type: "int", nullable: false), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), + LANG = table.Column(type: "int", nullable: true), + MODE = table.Column(type: "int", nullable: true), + REMOTEMODE = table.Column(type: "int", nullable: true), + REMOTEREASON = table.Column(type: "int", nullable: true), + SUB = table.Column(type: "bit", nullable: true), + NOT = table.Column(type: "int", nullable: true), TRTBIOMARK = table.Column(type: "int", nullable: true), TARGETAB1 = table.Column(type: "bit", nullable: true), TARGETTAU1 = table.Column(type: "bit", nullable: true), @@ -773,12 +793,7 @@ protected override void Up(MigrationBuilder migrationBuilder) CreatedBy = table.Column(type: "nvarchar(max)", nullable: false), ModifiedBy = table.Column(type: "nvarchar(max)", nullable: true), DeletedBy = table.Column(type: "nvarchar(max)", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false), - VisitId = table.Column(type: "int", nullable: false), - Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), - LANG = table.Column(type: "int", nullable: true), - SUB = table.Column(type: "bit", nullable: true), - NOT = table.Column(type: "int", nullable: true) + IsDeleted = table.Column(type: "bit", nullable: false) }, constraints: table => { @@ -797,6 +812,14 @@ protected override void Up(MigrationBuilder migrationBuilder) { FormId = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), + VisitId = table.Column(type: "int", nullable: false), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), + LANG = table.Column(type: "int", nullable: true), + MODE = table.Column(type: "int", nullable: true), + REMOTEMODE = table.Column(type: "int", nullable: true), + REMOTEREASON = table.Column(type: "int", nullable: true), + SUB = table.Column(type: "bit", nullable: true), + NOT = table.Column(type: "int", nullable: true), ANYMEDS = table.Column(type: "int", nullable: true), RXNORMID1_RxNormId = table.Column(type: "int", nullable: true), RXNORMID2_RxNormId = table.Column(type: "int", nullable: true), @@ -842,12 +865,7 @@ protected override void Up(MigrationBuilder migrationBuilder) CreatedBy = table.Column(type: "nvarchar(max)", nullable: false), ModifiedBy = table.Column(type: "nvarchar(max)", nullable: true), DeletedBy = table.Column(type: "nvarchar(max)", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false), - VisitId = table.Column(type: "int", nullable: false), - Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), - LANG = table.Column(type: "int", nullable: true), - SUB = table.Column(type: "bit", nullable: true), - NOT = table.Column(type: "int", nullable: true) + IsDeleted = table.Column(type: "bit", nullable: false) }, constraints: table => { @@ -1066,6 +1084,14 @@ protected override void Up(MigrationBuilder migrationBuilder) { FormId = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), + VisitId = table.Column(type: "int", nullable: false), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), + LANG = table.Column(type: "int", nullable: true), + MODE = table.Column(type: "int", nullable: true), + REMOTEMODE = table.Column(type: "int", nullable: true), + REMOTEREASON = table.Column(type: "int", nullable: true), + SUB = table.Column(type: "bit", nullable: true), + NOT = table.Column(type: "int", nullable: true), TOBAC100 = table.Column(type: "int", nullable: true, comment: "Has participant smoked more than 100 cigarettes in their life?"), SMOKYRS = table.Column(type: "int", nullable: true, comment: "Total years smoked"), PACKSPER = table.Column(type: "int", nullable: true, comment: "Average number of packs smoked per day"), @@ -1235,12 +1261,7 @@ protected override void Up(MigrationBuilder migrationBuilder) CreatedBy = table.Column(type: "nvarchar(max)", nullable: false), ModifiedBy = table.Column(type: "nvarchar(max)", nullable: true), DeletedBy = table.Column(type: "nvarchar(max)", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false), - VisitId = table.Column(type: "int", nullable: false), - Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), - LANG = table.Column(type: "int", nullable: true), - SUB = table.Column(type: "bit", nullable: true), - NOT = table.Column(type: "int", nullable: true) + IsDeleted = table.Column(type: "bit", nullable: false) }, constraints: table => { @@ -1259,6 +1280,14 @@ protected override void Up(MigrationBuilder migrationBuilder) { FormId = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), + VisitId = table.Column(type: "int", nullable: false), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), + LANG = table.Column(type: "int", nullable: true), + MODE = table.Column(type: "int", nullable: true), + REMOTEMODE = table.Column(type: "int", nullable: true), + REMOTEREASON = table.Column(type: "int", nullable: true), + SUB = table.Column(type: "bit", nullable: true), + NOT = table.Column(type: "int", nullable: true), HEIGHT = table.Column(type: "decimal(3,1)", nullable: true, comment: "Participant height (inches)"), WEIGHT = table.Column(type: "int", nullable: true, comment: "Participant weight (lbs.)"), WAIST1 = table.Column(type: "int", nullable: true, comment: "Waist circumference measurements (inches): Measurement 1"), @@ -1278,12 +1307,7 @@ protected override void Up(MigrationBuilder migrationBuilder) CreatedBy = table.Column(type: "nvarchar(max)", nullable: false), ModifiedBy = table.Column(type: "nvarchar(max)", nullable: true), DeletedBy = table.Column(type: "nvarchar(max)", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false), - VisitId = table.Column(type: "int", nullable: false), - Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), - LANG = table.Column(type: "int", nullable: true), - SUB = table.Column(type: "bit", nullable: true), - NOT = table.Column(type: "int", nullable: true) + IsDeleted = table.Column(type: "bit", nullable: false) }, constraints: table => { @@ -1302,6 +1326,14 @@ protected override void Up(MigrationBuilder migrationBuilder) { FormId = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), + VisitId = table.Column(type: "int", nullable: false), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), + LANG = table.Column(type: "int", nullable: true), + MODE = table.Column(type: "int", nullable: true), + REMOTEMODE = table.Column(type: "int", nullable: true), + REMOTEREASON = table.Column(type: "int", nullable: true), + SUB = table.Column(type: "bit", nullable: true), + NOT = table.Column(type: "int", nullable: true), PDNORMAL = table.Column(type: "bit", nullable: true), SPEECH = table.Column(type: "int", nullable: true), SPEECHX = table.Column(type: "nvarchar(60)", maxLength: 60, nullable: true), @@ -1362,12 +1394,7 @@ protected override void Up(MigrationBuilder migrationBuilder) CreatedBy = table.Column(type: "nvarchar(max)", nullable: false), ModifiedBy = table.Column(type: "nvarchar(max)", nullable: true), DeletedBy = table.Column(type: "nvarchar(max)", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false), - VisitId = table.Column(type: "int", nullable: false), - Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), - LANG = table.Column(type: "int", nullable: true), - SUB = table.Column(type: "bit", nullable: true), - NOT = table.Column(type: "int", nullable: true) + IsDeleted = table.Column(type: "bit", nullable: false) }, constraints: table => { @@ -1386,6 +1413,14 @@ protected override void Up(MigrationBuilder migrationBuilder) { FormId = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), + VisitId = table.Column(type: "int", nullable: false), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), + LANG = table.Column(type: "int", nullable: true), + MODE = table.Column(type: "int", nullable: true), + REMOTEMODE = table.Column(type: "int", nullable: true), + REMOTEREASON = table.Column(type: "int", nullable: true), + SUB = table.Column(type: "bit", nullable: true), + NOT = table.Column(type: "int", nullable: true), MEMORY = table.Column(type: "decimal(2,1)", nullable: true), ORIENT = table.Column(type: "decimal(2,1)", nullable: true), JUDGMENT = table.Column(type: "decimal(2,1)", nullable: true), @@ -1400,12 +1435,7 @@ protected override void Up(MigrationBuilder migrationBuilder) CreatedBy = table.Column(type: "nvarchar(max)", nullable: false), ModifiedBy = table.Column(type: "nvarchar(max)", nullable: true), DeletedBy = table.Column(type: "nvarchar(max)", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false), - VisitId = table.Column(type: "int", nullable: false), - Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), - LANG = table.Column(type: "int", nullable: true), - SUB = table.Column(type: "bit", nullable: true), - NOT = table.Column(type: "int", nullable: true) + IsDeleted = table.Column(type: "bit", nullable: false) }, constraints: table => { @@ -1424,6 +1454,14 @@ protected override void Up(MigrationBuilder migrationBuilder) { FormId = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), + VisitId = table.Column(type: "int", nullable: false), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), + LANG = table.Column(type: "int", nullable: true), + MODE = table.Column(type: "int", nullable: true), + REMOTEMODE = table.Column(type: "int", nullable: true), + REMOTEREASON = table.Column(type: "int", nullable: true), + SUB = table.Column(type: "bit", nullable: true), + NOT = table.Column(type: "int", nullable: true), NPIQINF = table.Column(type: "int", nullable: true), NPIQINFX = table.Column(type: "nvarchar(60)", maxLength: 60, nullable: true), DEL = table.Column(type: "int", nullable: true), @@ -1454,12 +1492,7 @@ protected override void Up(MigrationBuilder migrationBuilder) CreatedBy = table.Column(type: "nvarchar(max)", nullable: false), ModifiedBy = table.Column(type: "nvarchar(max)", nullable: true), DeletedBy = table.Column(type: "nvarchar(max)", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false), - VisitId = table.Column(type: "int", nullable: false), - Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), - LANG = table.Column(type: "int", nullable: true), - SUB = table.Column(type: "bit", nullable: true), - NOT = table.Column(type: "int", nullable: true) + IsDeleted = table.Column(type: "bit", nullable: false) }, constraints: table => { @@ -1478,6 +1511,14 @@ protected override void Up(MigrationBuilder migrationBuilder) { FormId = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), + VisitId = table.Column(type: "int", nullable: false), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), + LANG = table.Column(type: "int", nullable: true), + MODE = table.Column(type: "int", nullable: true), + REMOTEMODE = table.Column(type: "int", nullable: true), + REMOTEREASON = table.Column(type: "int", nullable: true), + SUB = table.Column(type: "bit", nullable: true), + NOT = table.Column(type: "int", nullable: true), NOGDS = table.Column(type: "int", nullable: true), SATIS = table.Column(type: "int", nullable: true), DROPACT = table.Column(type: "int", nullable: true), @@ -1499,12 +1540,7 @@ protected override void Up(MigrationBuilder migrationBuilder) CreatedBy = table.Column(type: "nvarchar(max)", nullable: false), ModifiedBy = table.Column(type: "nvarchar(max)", nullable: true), DeletedBy = table.Column(type: "nvarchar(max)", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false), - VisitId = table.Column(type: "int", nullable: false), - Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), - LANG = table.Column(type: "int", nullable: true), - SUB = table.Column(type: "bit", nullable: true), - NOT = table.Column(type: "int", nullable: true) + IsDeleted = table.Column(type: "bit", nullable: false) }, constraints: table => { @@ -1523,6 +1559,14 @@ protected override void Up(MigrationBuilder migrationBuilder) { FormId = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), + VisitId = table.Column(type: "int", nullable: false), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), + LANG = table.Column(type: "int", nullable: true), + MODE = table.Column(type: "int", nullable: true), + REMOTEMODE = table.Column(type: "int", nullable: true), + REMOTEREASON = table.Column(type: "int", nullable: true), + SUB = table.Column(type: "bit", nullable: true), + NOT = table.Column(type: "int", nullable: true), BILLS = table.Column(type: "int", nullable: true), TAXES = table.Column(type: "int", nullable: true), SHOPPING = table.Column(type: "int", nullable: true), @@ -1537,12 +1581,7 @@ protected override void Up(MigrationBuilder migrationBuilder) CreatedBy = table.Column(type: "nvarchar(max)", nullable: false), ModifiedBy = table.Column(type: "nvarchar(max)", nullable: true), DeletedBy = table.Column(type: "nvarchar(max)", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false), - VisitId = table.Column(type: "int", nullable: false), - Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), - LANG = table.Column(type: "int", nullable: true), - SUB = table.Column(type: "bit", nullable: true), - NOT = table.Column(type: "int", nullable: true) + IsDeleted = table.Column(type: "bit", nullable: false) }, constraints: table => { @@ -1561,6 +1600,14 @@ protected override void Up(MigrationBuilder migrationBuilder) { FormId = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), + VisitId = table.Column(type: "int", nullable: false), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), + LANG = table.Column(type: "int", nullable: true), + MODE = table.Column(type: "int", nullable: true), + REMOTEMODE = table.Column(type: "int", nullable: true), + REMOTEREASON = table.Column(type: "int", nullable: true), + SUB = table.Column(type: "bit", nullable: true), + NOT = table.Column(type: "int", nullable: true), NEUREXAM = table.Column(type: "int", nullable: true), NORMNREXAM = table.Column(type: "bit", nullable: true), PARKSIGN = table.Column(type: "int", nullable: true), @@ -1603,12 +1650,7 @@ protected override void Up(MigrationBuilder migrationBuilder) CreatedBy = table.Column(type: "nvarchar(max)", nullable: false), ModifiedBy = table.Column(type: "nvarchar(max)", nullable: true), DeletedBy = table.Column(type: "nvarchar(max)", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false), - VisitId = table.Column(type: "int", nullable: false), - Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), - LANG = table.Column(type: "int", nullable: true), - SUB = table.Column(type: "bit", nullable: true), - NOT = table.Column(type: "int", nullable: true) + IsDeleted = table.Column(type: "bit", nullable: false) }, constraints: table => { @@ -1627,6 +1669,14 @@ protected override void Up(MigrationBuilder migrationBuilder) { FormId = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), + VisitId = table.Column(type: "int", nullable: false), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), + LANG = table.Column(type: "int", nullable: true), + MODE = table.Column(type: "int", nullable: true), + REMOTEMODE = table.Column(type: "int", nullable: true), + REMOTEREASON = table.Column(type: "int", nullable: true), + SUB = table.Column(type: "bit", nullable: true), + NOT = table.Column(type: "int", nullable: true), DECCOG = table.Column(type: "int", nullable: true, comment: "Does the participant report a decline in any cognitive domain (relative to stable baseline prior to onset of current syndrome)?"), DECMOT = table.Column(type: "int", nullable: true, comment: "Does the participant report a decline in any motor domain (relative to stable baseline prior to onset of current syndrome)?"), PSYCHSYM = table.Column(type: "int", nullable: true, comment: "Does the participant report the development of any significant neuropsychiatric/behavioral symptoms (relative to stable baseline prior to onset of current syndrome)?"), @@ -1703,12 +1753,7 @@ protected override void Up(MigrationBuilder migrationBuilder) CreatedBy = table.Column(type: "nvarchar(max)", nullable: false), ModifiedBy = table.Column(type: "nvarchar(max)", nullable: true), DeletedBy = table.Column(type: "nvarchar(max)", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false), - VisitId = table.Column(type: "int", nullable: false), - Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), - LANG = table.Column(type: "int", nullable: true), - SUB = table.Column(type: "bit", nullable: true), - NOT = table.Column(type: "int", nullable: true) + IsDeleted = table.Column(type: "bit", nullable: false) }, constraints: table => { @@ -1727,6 +1772,14 @@ protected override void Up(MigrationBuilder migrationBuilder) { FormId = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), + VisitId = table.Column(type: "int", nullable: false), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), + LANG = table.Column(type: "int", nullable: true), + MODE = table.Column(type: "int", nullable: true), + REMOTEMODE = table.Column(type: "int", nullable: true), + REMOTEREASON = table.Column(type: "int", nullable: true), + SUB = table.Column(type: "bit", nullable: true), + NOT = table.Column(type: "int", nullable: true), MMSECOMP = table.Column(type: "int", nullable: true), MMSEREAS = table.Column(type: "int", nullable: true), MMSELOC = table.Column(type: "int", nullable: true), @@ -1778,12 +1831,7 @@ protected override void Up(MigrationBuilder migrationBuilder) CreatedBy = table.Column(type: "nvarchar(max)", nullable: false), ModifiedBy = table.Column(type: "nvarchar(max)", nullable: true), DeletedBy = table.Column(type: "nvarchar(max)", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false), - VisitId = table.Column(type: "int", nullable: false), - Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), - LANG = table.Column(type: "int", nullable: true), - SUB = table.Column(type: "bit", nullable: true), - NOT = table.Column(type: "int", nullable: true) + IsDeleted = table.Column(type: "bit", nullable: false) }, constraints: table => { @@ -1802,6 +1850,14 @@ protected override void Up(MigrationBuilder migrationBuilder) { FormId = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), + VisitId = table.Column(type: "int", nullable: false), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), + LANG = table.Column(type: "int", nullable: true), + MODE = table.Column(type: "int", nullable: true), + REMOTEMODE = table.Column(type: "int", nullable: true), + REMOTEREASON = table.Column(type: "int", nullable: true), + SUB = table.Column(type: "bit", nullable: true), + NOT = table.Column(type: "int", nullable: true), MOCACOMP = table.Column(type: "int", nullable: true), MOCAREAS = table.Column(type: "int", nullable: true), MOCALOC = table.Column(type: "int", nullable: true), @@ -1921,12 +1977,7 @@ protected override void Up(MigrationBuilder migrationBuilder) CreatedBy = table.Column(type: "nvarchar(max)", nullable: false), ModifiedBy = table.Column(type: "nvarchar(max)", nullable: true), DeletedBy = table.Column(type: "nvarchar(max)", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false), - VisitId = table.Column(type: "int", nullable: false), - Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), - LANG = table.Column(type: "int", nullable: true), - SUB = table.Column(type: "bit", nullable: true), - NOT = table.Column(type: "int", nullable: true) + IsDeleted = table.Column(type: "bit", nullable: false) }, constraints: table => { @@ -1945,6 +1996,14 @@ protected override void Up(MigrationBuilder migrationBuilder) { FormId = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), + VisitId = table.Column(type: "int", nullable: false), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), + LANG = table.Column(type: "int", nullable: true), + MODE = table.Column(type: "int", nullable: true), + REMOTEMODE = table.Column(type: "int", nullable: true), + REMOTEREASON = table.Column(type: "int", nullable: true), + SUB = table.Column(type: "bit", nullable: true), + NOT = table.Column(type: "int", nullable: true), DXMETHOD = table.Column(type: "int", nullable: true), NORMCOG = table.Column(type: "int", nullable: true), DEMENTED = table.Column(type: "int", nullable: true), @@ -2079,12 +2138,7 @@ protected override void Up(MigrationBuilder migrationBuilder) CreatedBy = table.Column(type: "nvarchar(max)", nullable: false), ModifiedBy = table.Column(type: "nvarchar(max)", nullable: true), DeletedBy = table.Column(type: "nvarchar(max)", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false), - VisitId = table.Column(type: "int", nullable: false), - Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), - LANG = table.Column(type: "int", nullable: true), - SUB = table.Column(type: "bit", nullable: true), - NOT = table.Column(type: "int", nullable: true) + IsDeleted = table.Column(type: "bit", nullable: false) }, constraints: table => { @@ -2103,6 +2157,14 @@ protected override void Up(MigrationBuilder migrationBuilder) { FormId = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), + VisitId = table.Column(type: "int", nullable: false), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), + LANG = table.Column(type: "int", nullable: true), + MODE = table.Column(type: "int", nullable: true), + REMOTEMODE = table.Column(type: "int", nullable: true), + REMOTEREASON = table.Column(type: "int", nullable: true), + SUB = table.Column(type: "bit", nullable: true), + NOT = table.Column(type: "int", nullable: true), TELCOG = table.Column(type: "int", nullable: true), TELILL = table.Column(type: "int", nullable: true), TELHOME = table.Column(type: "int", nullable: true), @@ -2117,12 +2179,7 @@ protected override void Up(MigrationBuilder migrationBuilder) CreatedBy = table.Column(type: "nvarchar(max)", nullable: false), ModifiedBy = table.Column(type: "nvarchar(max)", nullable: true), DeletedBy = table.Column(type: "nvarchar(max)", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false), - VisitId = table.Column(type: "int", nullable: false), - Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), - LANG = table.Column(type: "int", nullable: true), - SUB = table.Column(type: "bit", nullable: true), - NOT = table.Column(type: "int", nullable: true) + IsDeleted = table.Column(type: "bit", nullable: false) }, constraints: table => { diff --git a/src/UDS.Net.API/Data/Migrations/20240222172231_AddSQLViewForFormSummaries.Designer.cs b/src/UDS.Net.API/Data/Migrations/20240223172340_AddSQLViewForFormStatuses.Designer.cs similarity index 92% rename from src/UDS.Net.API/Data/Migrations/20240222172231_AddSQLViewForFormSummaries.Designer.cs rename to src/UDS.Net.API/Data/Migrations/20240223172340_AddSQLViewForFormStatuses.Designer.cs index e630aba..6cc18d1 100644 --- a/src/UDS.Net.API/Data/Migrations/20240222172231_AddSQLViewForFormSummaries.Designer.cs +++ b/src/UDS.Net.API/Data/Migrations/20240223172340_AddSQLViewForFormStatuses.Designer.cs @@ -12,8 +12,8 @@ namespace UDS.Net.API.Data.Migrations { [DbContext(typeof(ApiDbContext))] - [Migration("20240222172231_AddSQLViewForFormSummaries")] - partial class AddSQLViewForFormSummaries + [Migration("20240223172340_AddSQLViewForFormStatuses")] + partial class AddSQLViewForFormStatuses { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) @@ -30,7 +30,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -267,7 +268,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(true) - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("LIVSITUA") .HasColumnType("int"); @@ -277,7 +279,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MARISTAT") .HasColumnType("int"); @@ -294,6 +297,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("MEMWORS") .HasColumnType("int"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -371,7 +379,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("SERVED") .HasColumnType("int"); @@ -407,10 +426,12 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.Property("ZIP") .HasMaxLength(3) @@ -429,7 +450,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -614,7 +636,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("LESSCOURT") .HasColumnType("int") @@ -630,7 +653,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MISSEDFUP") .HasColumnType("int") @@ -640,6 +664,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasColumnType("int") .HasComment("19. I miss having people around"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -669,7 +698,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("SAFECOMM") .HasColumnType("int") @@ -686,7 +726,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("THREATENED") .HasColumnType("int") @@ -713,7 +754,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasComment("6. In the past 30 days, how often has a lack of transportation kept you from medical appointments or from doing things needed for daily living?"); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -728,7 +770,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -781,11 +824,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); + + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -795,15 +845,28 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -818,7 +881,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -858,14 +922,16 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("KIDS") .HasColumnType("int"); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MOMAGEO") .HasColumnType("int"); @@ -885,6 +951,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("MOMYOB") .HasColumnType("int"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -899,7 +970,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("SIBS") .HasColumnType("int"); @@ -907,10 +989,12 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -925,7 +1009,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -947,26 +1032,46 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); + + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -981,7 +1086,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -1016,29 +1122,49 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); + + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("TRTBIOMARK") .HasColumnType("int"); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -1053,7 +1179,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -1504,7 +1631,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("KIDNEY") .HasColumnType("int") @@ -1528,7 +1656,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MAJORDEP") .HasColumnType("int") @@ -1542,6 +1671,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasColumnType("int") .HasComment("Multiple sclerosis"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -1691,7 +1825,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("SCHIZ") .HasColumnType("int") @@ -1736,7 +1881,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("THYROID") .HasColumnType("int") @@ -1759,7 +1905,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasComment("Age at most recent heart valve replacement or repair procedure"); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -1774,7 +1921,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -1841,26 +1989,46 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); + + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.Property("WAIST1") .HasColumnType("int") @@ -1887,7 +2055,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -1962,7 +2131,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("LEGLF") .HasColumnType("int"); @@ -1980,7 +2150,13 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); + + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -2039,7 +2215,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("SPEECH") .HasColumnType("int"); @@ -2051,7 +2238,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("TAPSLF") .HasColumnType("int"); @@ -2120,7 +2308,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasColumnType("nvarchar(60)"); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -2135,7 +2324,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -2172,18 +2362,25 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("JUDGMENT") .HasColumnType("decimal(2,1)"); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MEMORY") .HasColumnType("decimal(2,1)"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -2195,15 +2392,28 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -2218,7 +2428,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -2297,11 +2508,13 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MOT") .HasColumnType("int"); @@ -2309,6 +2522,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("MOTSEV") .HasColumnType("int"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -2327,15 +2545,28 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -2350,7 +2581,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -2399,15 +2631,22 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MEMPROB") .HasColumnType("int"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -2416,7 +2655,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("SATIS") .HasColumnType("int"); @@ -2430,10 +2680,12 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.Property("WONDRFUL") .HasColumnType("int"); @@ -2454,7 +2706,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -2482,15 +2735,22 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MEALPREP") .HasColumnType("int"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -2502,7 +2762,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("SHOPPING") .HasColumnType("int"); @@ -2513,7 +2784,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("TAXES") .HasColumnType("int"); @@ -2522,7 +2794,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasColumnType("int"); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -2537,7 +2810,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -2599,7 +2873,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("LIMBAPRAX") .HasColumnType("int"); @@ -2612,7 +2887,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MASKING") .HasColumnType("int"); @@ -2620,6 +2896,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("MYOCLON") .HasColumnType("int"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -2652,7 +2933,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("SLOWINGFM") .HasColumnType("int"); @@ -2666,7 +2958,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("TREMKINE") .HasColumnType("int"); @@ -2690,7 +2983,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasColumnType("int"); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -2705,7 +2999,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -2934,11 +3229,13 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MOFACE") .HasColumnType("int") @@ -2988,6 +3285,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasColumnType("int") .HasComment("Indicate whether the participant currently has meaningful changes in motor function — Tremor"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -3022,7 +3324,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("SEDUSE") .HasColumnType("bit") @@ -3031,10 +3344,12 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -3049,7 +3364,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -3089,7 +3405,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("LOGIDAY") .HasColumnType("int"); @@ -3108,7 +3425,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MEMTIME") .HasColumnType("int"); @@ -3147,6 +3465,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("MMSEVIS") .HasColumnType("int"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -3165,12 +3488,24 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("TRAILA") .HasColumnType("int"); @@ -3230,7 +3565,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasColumnType("int"); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -3245,7 +3581,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -3342,11 +3679,13 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MINTPCNC") .HasColumnType("int"); @@ -3457,6 +3796,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("MOCAVIS") .HasColumnType("int"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -3563,12 +3907,24 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("TRAILA") .HasColumnType("int"); @@ -3631,7 +3987,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasColumnType("int"); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -3646,7 +4003,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -3891,7 +4249,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("LBDIF") .HasColumnType("int"); @@ -3904,7 +4263,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MCIAMEM") .HasColumnType("int"); @@ -3969,6 +4329,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("MSAIF") .HasColumnType("int"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -4056,7 +4421,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("SCHIZOIF") .HasColumnType("int"); @@ -4073,7 +4449,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("TAUPETAD") .HasColumnType("int"); @@ -4082,7 +4459,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasColumnType("int"); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -4120,7 +4498,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("UDS.Net.API.Entities.FormStatus", b => { b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.Property("Kind") .HasMaxLength(2) @@ -4139,30 +4518,50 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); + + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.HasKey("VisitId", "Kind"); @@ -4331,7 +4730,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -4350,23 +4750,42 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); + + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("TELCOG") .HasColumnType("int"); @@ -4400,7 +4819,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasColumnType("int"); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -4464,40 +4884,34 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("UDS.Net.API.Entities.A1", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("A1") .HasForeignKey("UDS.Net.API.Entities.A1", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.A1a", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("A1a") .HasForeignKey("UDS.Net.API.Entities.A1a", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.A2", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("A2") .HasForeignKey("UDS.Net.API.Entities.A2", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.A3", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("A3") .HasForeignKey("UDS.Net.API.Entities.A3", "VisitId") .OnDelete(DeleteBehavior.Cascade) @@ -5762,13 +6176,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Navigation("SIB9") .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.A4", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("A4") .HasForeignKey("UDS.Net.API.Entities.A4", "VisitId") .OnDelete(DeleteBehavior.Cascade) @@ -6853,13 +7265,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Navigation("RXNORMID9") .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.A4a", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("A4a") .HasForeignKey("UDS.Net.API.Entities.A4a", "VisitId") .OnDelete(DeleteBehavior.Cascade) @@ -7464,151 +7874,123 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Navigation("Treatment8") .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.A5D2", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("A5D2") .HasForeignKey("UDS.Net.API.Entities.A5D2", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.B1", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("B1") .HasForeignKey("UDS.Net.API.Entities.B1", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.B3", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("B3") .HasForeignKey("UDS.Net.API.Entities.B3", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.B4", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("B4") .HasForeignKey("UDS.Net.API.Entities.B4", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.B5", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("B5") .HasForeignKey("UDS.Net.API.Entities.B5", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.B6", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("B6") .HasForeignKey("UDS.Net.API.Entities.B6", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.B7", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("B7") .HasForeignKey("UDS.Net.API.Entities.B7", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.B8", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("B8") .HasForeignKey("UDS.Net.API.Entities.B8", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.B9", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("B9") .HasForeignKey("UDS.Net.API.Entities.B9", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.C1", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("C1") .HasForeignKey("UDS.Net.API.Entities.C1", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.C2", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("C2") .HasForeignKey("UDS.Net.API.Entities.C2", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.D1", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("D1") .HasForeignKey("UDS.Net.API.Entities.D1", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.FormStatus", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithMany("FormStatuses") .HasForeignKey("VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.M1", b => @@ -7624,13 +8006,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("UDS.Net.API.Entities.T1", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("T1") .HasForeignKey("UDS.Net.API.Entities.T1", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.Visit", b => diff --git a/src/UDS.Net.API/Data/Migrations/20240223172340_AddSQLViewForFormStatuses.cs b/src/UDS.Net.API/Data/Migrations/20240223172340_AddSQLViewForFormStatuses.cs new file mode 100644 index 0000000..5fd9481 --- /dev/null +++ b/src/UDS.Net.API/Data/Migrations/20240223172340_AddSQLViewForFormStatuses.cs @@ -0,0 +1,83 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace UDS.Net.API.Data.Migrations +{ + /// + public partial class AddSQLViewForFormStatuses : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.Sql(@" + CREATE VIEW vw_FormStatuses + AS + SELECT a1.[FormId], a1.[VisitId], a1.[Status], a1.[LANG], a1.[MODE], a1.[REMOTEMODE], a1.[REMOTEREASON], a1.[SUB], a1.[NOT], 'A1' as Kind, a1.[CreatedAt], a1.[CreatedBy], a1.[ModifiedBy], a1.[DeletedBy], a1.[IsDeleted] + FROM dbo.tbl_A1s as a1 + UNION + SELECT a1a.[FormId], a1a.[VisitId], a1a.[Status], a1a.[LANG], a1a.[MODE], a1a.[REMOTEMODE], a1a.[REMOTEREASON], a1a.[SUB], a1a.[NOT], 'A1a' as Kind, a1a.[CreatedAt], a1a.[CreatedBy], a1a.[ModifiedBy], a1a.[DeletedBy], a1a.[IsDeleted] + FROM dbo.tbl_A1as as a1a + UNION + SELECT a2.[FormId], a2.[VisitId], a2.[Status], a2.[LANG], a2.[MODE], a2.[REMOTEMODE], a2.[REMOTEREASON], a2.[SUB], a2.[NOT], 'A2' as Kind, a2.[CreatedAt], a2.[CreatedBy], a2.[ModifiedBy], a2.[DeletedBy], a2.[IsDeleted] + FROM dbo.tbl_A2s as a2 + UNION + SELECT a3.[FormId], a3.[VisitId], a3.[Status], a3.[LANG], a3.[MODE], a3.[REMOTEMODE], a3.[REMOTEREASON], a3.[SUB], a3.[NOT], 'A3' as Kind, a3.[CreatedAt], a3.[CreatedBy], a3.[ModifiedBy], a3.[DeletedBy], a3.[IsDeleted] + FROM dbo.tbl_A3s as a3 + UNION + SELECT a4.[FormId], a4.[VisitId], a4.[Status], a4.[LANG], a4.[MODE], a4.[REMOTEMODE], a4.[REMOTEREASON], a4.[SUB], a4.[NOT], 'A4' as Kind, a4.[CreatedAt], a4.[CreatedBy], a4.[ModifiedBy], a4.[DeletedBy], a4.[IsDeleted] + FROM dbo.tbl_A4s as a4 + UNION + SELECT a4a.[FormId], a4a.[VisitId], a4a.[Status], a4a.[LANG], a4a.[MODE], a4a.[REMOTEMODE], a4a.[REMOTEREASON], a4a.[SUB], a4a.[NOT], 'A4a' as Kind, a4a.[CreatedAt], a4a.[CreatedBy], a4a.[ModifiedBy], a4a.[DeletedBy], a4a.[IsDeleted] + FROM dbo.tbl_A4as as a4a + UNION + SELECT a5d2.[FormId], a5d2.[VisitId], a5d2.[Status], a5d2.[LANG], a5d2.[MODE], a5d2.[REMOTEMODE], a5d2.[REMOTEREASON], a5d2.[SUB], a5d2.[NOT], 'A5D2' as Kind, a5d2.[CreatedAt], a5d2.[CreatedBy], a5d2.[ModifiedBy], a5d2.[DeletedBy], a5d2.[IsDeleted] + FROM dbo.tbl_A5D2s as a5d2 + UNION + SELECT b1.[FormId], b1.[VisitId], b1.[Status], b1.[LANG], b1.[MODE], b1.[REMOTEMODE], b1.[REMOTEREASON], b1.[SUB], b1.[NOT], 'B1' as Kind, b1.[CreatedAt], b1.[CreatedBy], b1.[ModifiedBy], b1.[DeletedBy], b1.[IsDeleted] + FROM dbo.tbl_B1s as b1 + UNION + SELECT b3.[FormId], b3.[VisitId], b3.[Status], b3.[LANG], b3.[MODE], b3.[REMOTEMODE], b3.[REMOTEREASON], b3.[SUB], b3.[NOT], 'B3' as Kind, b3.[CreatedAt], b3.[CreatedBy], b3.[ModifiedBy], b3.[DeletedBy], b3.[IsDeleted] + FROM dbo.tbl_B3s as b3 + UNION + SELECT b4.[FormId], b4.[VisitId], b4.[Status], b4.[LANG], b4.[MODE], b4.[REMOTEMODE], b4.[REMOTEREASON], b4.[SUB], b4.[NOT], 'B4' as Kind, b4.[CreatedAt], b4.[CreatedBy], b4.[ModifiedBy], b4.[DeletedBy], b4.[IsDeleted] + FROM dbo.tbl_B4s as b4 + UNION + SELECT b5.[FormId], b5.[VisitId], b5.[Status], b5.[LANG], b5.[MODE], b5.[REMOTEMODE], b5.[REMOTEREASON], b5.[SUB], b5.[NOT], 'B5' as Kind, b5.[CreatedAt], b5.[CreatedBy], b5.[ModifiedBy], b5.[DeletedBy], b5.[IsDeleted] + FROM dbo.tbl_B5s as b5 + UNION + SELECT b6.[FormId], b6.[VisitId], b6.[Status], b6.[LANG], b6.[MODE], b6.[REMOTEMODE], b6.[REMOTEREASON], b6.[SUB], b6.[NOT], 'B6' as Kind, b6.[CreatedAt], b6.[CreatedBy], b6.[ModifiedBy], b6.[DeletedBy], b6.[IsDeleted] + FROM dbo.tbl_B6s as b6 + UNION + SELECT b7.[FormId], b7.[VisitId], b7.[Status], b7.[LANG], b7.[MODE], b7.[REMOTEMODE], b7.[REMOTEREASON], b7.[SUB], b7.[NOT], 'B7' as Kind, b7.[CreatedAt], b7.[CreatedBy], b7.[ModifiedBy], b7.[DeletedBy], b7.[IsDeleted] + FROM dbo.tbl_B7s as b7 + UNION + SELECT b8.[FormId], b8.[VisitId], b8.[Status], b8.[LANG], b8.[MODE], b8.[REMOTEMODE], b8.[REMOTEREASON], b8.[SUB], b8.[NOT], 'B8' as Kind, b8.[CreatedAt], b8.[CreatedBy], b8.[ModifiedBy], b8.[DeletedBy], b8.[IsDeleted] + FROM dbo.tbl_B8s as b8 + UNION + SELECT b9.[FormId], b9.[VisitId], b9.[Status], b9.[LANG], b9.[MODE], b9.[REMOTEMODE], b9.[REMOTEREASON], b9.[SUB], b9.[NOT], 'B9' as Kind, b9.[CreatedAt], b9.[CreatedBy], b9.[ModifiedBy], b9.[DeletedBy], b9.[IsDeleted] + FROM dbo.tbl_B9s as b9 + UNION + SELECT c1.[FormId], c1.[VisitId], c1.[Status], c1.[LANG], c1.[MODE], c1.[REMOTEMODE], c1.[REMOTEREASON], c1.[SUB], c1.[NOT], 'C1' as Kind, c1.[CreatedAt], c1.[CreatedBy], c1.[ModifiedBy], c1.[DeletedBy], c1.[IsDeleted] + FROM dbo.tbl_C1s as c1 + UNION + SELECT c2.[FormId], c2.[VisitId], c2.[Status], c2.[LANG], c2.[MODE], c2.[REMOTEMODE], c2.[REMOTEREASON], c2.[SUB], c2.[NOT], 'C2' as Kind, c2.[CreatedAt], c2.[CreatedBy], c2.[ModifiedBy], c2.[DeletedBy], c2.[IsDeleted] + FROM dbo.tbl_C2s as c2 + UNION + SELECT d1.[FormId], d1.[VisitId], d1.[Status], d1.[LANG], d1.[MODE], d1.[REMOTEMODE], d1.[REMOTEREASON], d1.[SUB], d1.[NOT], 'D1' as Kind, d1.[CreatedAt], d1.[CreatedBy], d1.[ModifiedBy], d1.[DeletedBy], d1.[IsDeleted] + FROM dbo.tbl_D1s as d1 + UNION + SELECT t1.[FormId], t1.[VisitId], t1.[Status], t1.[LANG], t1.[MODE], t1.[REMOTEMODE], t1.[REMOTEREASON], t1.[SUB], t1.[NOT], 'T1' as Kind, t1.[CreatedAt], t1.[CreatedBy], t1.[ModifiedBy], t1.[DeletedBy], t1.[IsDeleted] + FROM dbo.tbl_T1s as t1; + "); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.Sql(@" + DROP VIEW dbo.vw_FormStatuses; + "); + } + } +} diff --git a/src/UDS.Net.API/Data/Migrations/ApiDbContextModelSnapshot.cs b/src/UDS.Net.API/Data/Migrations/ApiDbContextModelSnapshot.cs index 63a5231..d48fef3 100644 --- a/src/UDS.Net.API/Data/Migrations/ApiDbContextModelSnapshot.cs +++ b/src/UDS.Net.API/Data/Migrations/ApiDbContextModelSnapshot.cs @@ -27,7 +27,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -264,7 +265,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(true) - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("LIVSITUA") .HasColumnType("int"); @@ -274,7 +276,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MARISTAT") .HasColumnType("int"); @@ -291,6 +294,11 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("MEMWORS") .HasColumnType("int"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -368,7 +376,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("SERVED") .HasColumnType("int"); @@ -404,10 +423,12 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.Property("ZIP") .HasMaxLength(3) @@ -426,7 +447,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -611,7 +633,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("LESSCOURT") .HasColumnType("int") @@ -627,7 +650,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MISSEDFUP") .HasColumnType("int") @@ -637,6 +661,11 @@ protected override void BuildModel(ModelBuilder modelBuilder) .HasColumnType("int") .HasComment("19. I miss having people around"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -666,7 +695,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("SAFECOMM") .HasColumnType("int") @@ -683,7 +723,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("THREATENED") .HasColumnType("int") @@ -710,7 +751,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) .HasComment("6. In the past 30 days, how often has a lack of transportation kept you from medical appointments or from doing things needed for daily living?"); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -725,7 +767,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -778,11 +821,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); + + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -792,15 +842,28 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -815,7 +878,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -855,14 +919,16 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("KIDS") .HasColumnType("int"); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MOMAGEO") .HasColumnType("int"); @@ -882,6 +948,11 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("MOMYOB") .HasColumnType("int"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -896,7 +967,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("SIBS") .HasColumnType("int"); @@ -904,10 +986,12 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -922,7 +1006,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -944,26 +1029,46 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); + + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -978,7 +1083,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -1013,29 +1119,49 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); + + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("TRTBIOMARK") .HasColumnType("int"); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -1050,7 +1176,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -1501,7 +1628,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("KIDNEY") .HasColumnType("int") @@ -1525,7 +1653,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MAJORDEP") .HasColumnType("int") @@ -1539,6 +1668,11 @@ protected override void BuildModel(ModelBuilder modelBuilder) .HasColumnType("int") .HasComment("Multiple sclerosis"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -1688,7 +1822,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("SCHIZ") .HasColumnType("int") @@ -1733,7 +1878,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("THYROID") .HasColumnType("int") @@ -1756,7 +1902,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) .HasComment("Age at most recent heart valve replacement or repair procedure"); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -1771,7 +1918,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -1838,26 +1986,46 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); + + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.Property("WAIST1") .HasColumnType("int") @@ -1884,7 +2052,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -1959,7 +2128,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("LEGLF") .HasColumnType("int"); @@ -1977,7 +2147,13 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); + + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -2036,7 +2212,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("SPEECH") .HasColumnType("int"); @@ -2048,7 +2235,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("TAPSLF") .HasColumnType("int"); @@ -2117,7 +2305,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) .HasColumnType("nvarchar(60)"); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -2132,7 +2321,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -2169,18 +2359,25 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("JUDGMENT") .HasColumnType("decimal(2,1)"); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MEMORY") .HasColumnType("decimal(2,1)"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -2192,15 +2389,28 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -2215,7 +2425,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -2294,11 +2505,13 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MOT") .HasColumnType("int"); @@ -2306,6 +2519,11 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("MOTSEV") .HasColumnType("int"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -2324,15 +2542,28 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -2347,7 +2578,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -2396,15 +2628,22 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MEMPROB") .HasColumnType("int"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -2413,7 +2652,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("SATIS") .HasColumnType("int"); @@ -2427,10 +2677,12 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.Property("WONDRFUL") .HasColumnType("int"); @@ -2451,7 +2703,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -2479,15 +2732,22 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MEALPREP") .HasColumnType("int"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -2499,7 +2759,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("SHOPPING") .HasColumnType("int"); @@ -2510,7 +2781,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("TAXES") .HasColumnType("int"); @@ -2519,7 +2791,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) .HasColumnType("int"); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -2534,7 +2807,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -2596,7 +2870,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("LIMBAPRAX") .HasColumnType("int"); @@ -2609,7 +2884,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MASKING") .HasColumnType("int"); @@ -2617,6 +2893,11 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("MYOCLON") .HasColumnType("int"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -2649,7 +2930,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("SLOWINGFM") .HasColumnType("int"); @@ -2663,7 +2955,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("TREMKINE") .HasColumnType("int"); @@ -2687,7 +2980,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) .HasColumnType("int"); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -2702,7 +2996,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -2931,11 +3226,13 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MOFACE") .HasColumnType("int") @@ -2985,6 +3282,11 @@ protected override void BuildModel(ModelBuilder modelBuilder) .HasColumnType("int") .HasComment("Indicate whether the participant currently has meaningful changes in motor function — Tremor"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -3019,7 +3321,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("SEDUSE") .HasColumnType("bit") @@ -3028,10 +3341,12 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -3046,7 +3361,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -3086,7 +3402,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("LOGIDAY") .HasColumnType("int"); @@ -3105,7 +3422,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MEMTIME") .HasColumnType("int"); @@ -3144,6 +3462,11 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("MMSEVIS") .HasColumnType("int"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -3162,12 +3485,24 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("TRAILA") .HasColumnType("int"); @@ -3227,7 +3562,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) .HasColumnType("int"); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -3242,7 +3578,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -3339,11 +3676,13 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MINTPCNC") .HasColumnType("int"); @@ -3454,6 +3793,11 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("MOCAVIS") .HasColumnType("int"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -3560,12 +3904,24 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("TRAILA") .HasColumnType("int"); @@ -3628,7 +3984,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) .HasColumnType("int"); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -3643,7 +4000,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -3888,7 +4246,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("LBDIF") .HasColumnType("int"); @@ -3901,7 +4260,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); b.Property("MCIAMEM") .HasColumnType("int"); @@ -3966,6 +4326,11 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("MSAIF") .HasColumnType("int"); + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); + b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); @@ -4053,7 +4418,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("SCHIZOIF") .HasColumnType("int"); @@ -4070,7 +4446,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("TAUPETAD") .HasColumnType("int"); @@ -4079,7 +4456,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) .HasColumnType("int"); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -4117,7 +4495,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("UDS.Net.API.Entities.FormStatus", b => { b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.Property("Kind") .HasMaxLength(2) @@ -4136,30 +4515,50 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); + + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.HasKey("VisitId", "Kind"); @@ -4328,7 +4727,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") - .HasColumnName("FormId"); + .HasColumnName("FormId") + .HasColumnOrder(0); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); @@ -4347,23 +4747,42 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("IsIncluded") .HasColumnType("bit") - .HasColumnName("SUB"); + .HasColumnName("SUB") + .HasColumnOrder(7); b.Property("Language") .HasColumnType("int") - .HasColumnName("LANG"); + .HasColumnName("LANG") + .HasColumnOrder(3); + + b.Property("Mode") + .HasColumnType("int") + .HasColumnName("MODE") + .HasColumnOrder(4); b.Property("ModifiedBy") .HasColumnType("nvarchar(max)"); b.Property("ReasonCode") .HasColumnType("int") - .HasColumnName("NOT"); + .HasColumnName("NOT") + .HasColumnOrder(8); + + b.Property("RemoteMode") + .HasColumnType("int") + .HasColumnName("REMOTEMODE") + .HasColumnOrder(5); + + b.Property("RemoteReasonCode") + .HasColumnType("int") + .HasColumnName("REMOTEREASON") + .HasColumnOrder(6); b.Property("Status") .IsRequired() .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasColumnType("nvarchar(20)") + .HasColumnOrder(2); b.Property("TELCOG") .HasColumnType("int"); @@ -4397,7 +4816,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) .HasColumnType("int"); b.Property("VisitId") - .HasColumnType("int"); + .HasColumnType("int") + .HasColumnOrder(1); b.HasKey("Id"); @@ -4461,40 +4881,34 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("UDS.Net.API.Entities.A1", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("A1") .HasForeignKey("UDS.Net.API.Entities.A1", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.A1a", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("A1a") .HasForeignKey("UDS.Net.API.Entities.A1a", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.A2", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("A2") .HasForeignKey("UDS.Net.API.Entities.A2", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.A3", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("A3") .HasForeignKey("UDS.Net.API.Entities.A3", "VisitId") .OnDelete(DeleteBehavior.Cascade) @@ -5759,13 +6173,11 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Navigation("SIB9") .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.A4", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("A4") .HasForeignKey("UDS.Net.API.Entities.A4", "VisitId") .OnDelete(DeleteBehavior.Cascade) @@ -6850,13 +7262,11 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Navigation("RXNORMID9") .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.A4a", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("A4a") .HasForeignKey("UDS.Net.API.Entities.A4a", "VisitId") .OnDelete(DeleteBehavior.Cascade) @@ -7461,151 +7871,123 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Navigation("Treatment8") .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.A5D2", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("A5D2") .HasForeignKey("UDS.Net.API.Entities.A5D2", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.B1", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("B1") .HasForeignKey("UDS.Net.API.Entities.B1", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.B3", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("B3") .HasForeignKey("UDS.Net.API.Entities.B3", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.B4", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("B4") .HasForeignKey("UDS.Net.API.Entities.B4", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.B5", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("B5") .HasForeignKey("UDS.Net.API.Entities.B5", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.B6", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("B6") .HasForeignKey("UDS.Net.API.Entities.B6", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.B7", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("B7") .HasForeignKey("UDS.Net.API.Entities.B7", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.B8", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("B8") .HasForeignKey("UDS.Net.API.Entities.B8", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.B9", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("B9") .HasForeignKey("UDS.Net.API.Entities.B9", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.C1", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("C1") .HasForeignKey("UDS.Net.API.Entities.C1", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.C2", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("C2") .HasForeignKey("UDS.Net.API.Entities.C2", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.D1", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("D1") .HasForeignKey("UDS.Net.API.Entities.D1", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.FormStatus", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithMany("FormStatuses") .HasForeignKey("VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.M1", b => @@ -7621,13 +8003,11 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("UDS.Net.API.Entities.T1", b => { - b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + b.HasOne("UDS.Net.API.Entities.Visit", null) .WithOne("T1") .HasForeignKey("UDS.Net.API.Entities.T1", "VisitId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - - b.Navigation("Visit"); }); modelBuilder.Entity("UDS.Net.API.Entities.Visit", b => diff --git a/src/UDS.Net.API/Entities/B1.cs b/src/UDS.Net.API/Entities/B1.cs index 7fcdfd1..ea98d3f 100644 --- a/src/UDS.Net.API/Entities/B1.cs +++ b/src/UDS.Net.API/Entities/B1.cs @@ -5,7 +5,7 @@ namespace UDS.Net.API.Entities { /// - /// Physical + /// Vital Signs and Anthropometrics /// [Table("tbl_B1s")] public class B1 : Form diff --git a/src/UDS.Net.API/Entities/Form.cs b/src/UDS.Net.API/Entities/Form.cs index fcf9425..272c581 100644 --- a/src/UDS.Net.API/Entities/Form.cs +++ b/src/UDS.Net.API/Entities/Form.cs @@ -8,23 +8,33 @@ public abstract class Form : BaseEntity { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - [Column("FormId")] + [Column("FormId", Order = 0)] public int Id { get; set; } + // CenterOnAging.studies.tbl_Visits + [Column(Order = 1)] public int VisitId { get; set; } - public virtual Visit Visit { get; set; } = default!; - [MaxLength(20)] + [Column(Order = 2)] public string Status { get; set; } = default!; - [Column("LANG")] + [Column("LANG", Order = 3)] public Language? Language { get; set; } - [Column("SUB")] + [Column("MODE", Order = 4)] // TODO update variable name + public FormMode? Mode { get; set; } + + [Column("REMOTEMODE", Order = 5)] // TODO update variable name + public RemoteMode? RemoteMode { get; set; } + + [Column("REMOTEREASON", Order = 6)] // TODO update variable name + public RemoteReasonCode? RemoteReasonCode { get; set; } + + [Column("SUB", Order = 7)] public bool? IsIncluded { get; set; } - [Column("NOT")] + [Column("NOT", Order = 8)] public ReasonCode? ReasonCode { get; set; } } } diff --git a/src/UDS.Net.API/Entities/FormMode.cs b/src/UDS.Net.API/Entities/FormMode.cs new file mode 100644 index 0000000..0f2ddd9 --- /dev/null +++ b/src/UDS.Net.API/Entities/FormMode.cs @@ -0,0 +1,11 @@ +using System; +namespace UDS.Net.API.Entities +{ + public enum FormMode + { + InPerson = 1, + Remote = 2, + NotCompleted = 3 + } +} + diff --git a/src/UDS.Net.API/Entities/ReasonCode.cs b/src/UDS.Net.API/Entities/ReasonCode.cs index 775da50..a7f4fe2 100644 --- a/src/UDS.Net.API/Entities/ReasonCode.cs +++ b/src/UDS.Net.API/Entities/ReasonCode.cs @@ -7,6 +7,7 @@ public enum ReasonCode CognitiveOrBehavioralProblem = 96, OtherProblem = 97, VerbalRefusal = 98, + [Obsolete] UnknownOrInadequateInformation = 99 } } diff --git a/src/UDS.Net.API/Entities/RemoteMode.cs b/src/UDS.Net.API/Entities/RemoteMode.cs new file mode 100644 index 0000000..83c4671 --- /dev/null +++ b/src/UDS.Net.API/Entities/RemoteMode.cs @@ -0,0 +1,10 @@ +using System; +namespace UDS.Net.API.Entities +{ + public enum RemoteMode + { + Telephone = 1, + Video = 2 + } +} + diff --git a/src/UDS.Net.API/Entities/RemoteReasonCode.cs b/src/UDS.Net.API/Entities/RemoteReasonCode.cs new file mode 100644 index 0000000..3a0ed48 --- /dev/null +++ b/src/UDS.Net.API/Entities/RemoteReasonCode.cs @@ -0,0 +1,13 @@ +using System; +namespace UDS.Net.API.Entities +{ + public enum RemoteReasonCode + { + TooCognitivelyImpaired = 1, + TooPhysicallyImpaired = 2, + HomeboundOrNursingHome = 3, + RefusedInPseronVisit = 4, + Other = 5 + } +} + diff --git a/src/UDS.Net.API/Entities/Visit.cs b/src/UDS.Net.API/Entities/Visit.cs index 1310ec0..e59c3ed 100644 --- a/src/UDS.Net.API/Entities/Visit.cs +++ b/src/UDS.Net.API/Entities/Visit.cs @@ -33,39 +33,39 @@ public class Visit : BaseEntity public virtual A1 A1 { get; set; } = default!; // A1 required for all visit kinds - public virtual A1a A1a { get; set; } = default!; + public virtual A1a A1a { get; set; } = default!; // A1a required at least for IVP public virtual A2 A2 { get; set; } = default!; - public virtual A3 A3 { get; set; } = default!; + public virtual A3 A3 { get; set; } = default!; // A3 required at least for IVP - public virtual A4 A4 { get; set; } = default!; + public virtual A4 A4 { get; set; } = default!; // A4 optional - public virtual A4a A4a { get; set; } = default!; + public virtual A4a A4a { get; set; } = default!; // A4a optional - public virtual A5D2 A5D2 { get; set; } = default!; + public virtual A5D2 A5D2 { get; set; } = default!; // A5D2 required at least for IVP - public virtual B1 B1 { get; set; } = default!; + public virtual B1 B1 { get; set; } = default!; // B1 required at least for IVP - public virtual B3 B3 { get; set; } = default!; + public virtual B3 B3 { get; set; } = default!; // B3 optional and only available or in-person - public virtual B4 B4 { get; set; } = default!; + public virtual B4 B4 { get; set; } = default!; // B4 required at least for IVP - public virtual B5 B5 { get; set; } = default!; + public virtual B5 B5 { get; set; } = default!; // B5 optional - public virtual B6 B6 { get; set; } = default!; + public virtual B6 B6 { get; set; } = default!; // B6 optional - public virtual B7 B7 { get; set; } = default!; + public virtual B7 B7 { get; set; } = default!; // B7 optional - public virtual B8 B8 { get; set; } = default!; + public virtual B8 B8 { get; set; } = default!; // B8 required at least for IVP - public virtual B9 B9 { get; set; } = default!; + public virtual B9 B9 { get; set; } = default!; // B9 required at least for IVP - public virtual C1 C1 { get; set; } = default!; + public virtual C1 C1 { get; set; } = default!; // not allowed? - public virtual C2 C2 { get; set; } = default!; + public virtual C2 C2 { get; set; } = default!; // C2 required at least for IVP - public virtual D1 D1 { get; set; } = default!; + public virtual D1 D1 { get; set; } = default!; // D1a and D1b required at least for IVP public virtual T1? T1 { get; set; } // T1 only required for TIP, TFP visits } diff --git a/src/UDS.Net.API/Extensions/DtoToEntityMapper.cs b/src/UDS.Net.API/Extensions/DtoToEntityMapper.cs index 2fe3db0..cee4ea3 100644 --- a/src/UDS.Net.API/Extensions/DtoToEntityMapper.cs +++ b/src/UDS.Net.API/Extensions/DtoToEntityMapper.cs @@ -23,6 +23,30 @@ private static void SetBaseProperties(this Form entity, FormDto dto) entity.Language = language; } + if (String.IsNullOrWhiteSpace(dto.Mode)) + entity.Mode = null; + else + { + if (Enum.TryParse(dto.Mode, true, out FormMode mode)) + entity.Mode = mode; + } + + if (String.IsNullOrWhiteSpace(dto.RemoteMode)) + entity.RemoteMode = null; + else + { + if (Enum.TryParse(dto.RemoteMode, true, out RemoteMode remoteMode)) + entity.RemoteMode = remoteMode; + } + + if (String.IsNullOrWhiteSpace(dto.RemoteReasonCode)) + entity.RemoteReasonCode = null; + else + { + if (Enum.TryParse(dto.RemoteReasonCode, true, out RemoteReasonCode code)) + entity.RemoteReasonCode = code; + } + entity.IsIncluded = dto.IsIncluded; if (String.IsNullOrWhiteSpace(dto.ReasonCode)) diff --git a/src/UDS.Net.API/Extensions/EntityToDtoMapper.cs b/src/UDS.Net.API/Extensions/EntityToDtoMapper.cs index 9a3f5a0..374a44b 100644 --- a/src/UDS.Net.API/Extensions/EntityToDtoMapper.cs +++ b/src/UDS.Net.API/Extensions/EntityToDtoMapper.cs @@ -153,25 +153,6 @@ public static VisitDto ToDto(this Visit visit, string formKind) return dto; } - public static FormDto ToSummaryDto(this Form form, string formKind) - { - return new FormDto - { - Id = form.Id, - VisitId = form.VisitId, - Status = form.Status, - Kind = formKind, - IsDeleted = form.IsDeleted, - DeletedBy = form.DeletedBy, - CreatedBy = form.CreatedBy, - CreatedAt = form.CreatedAt, - IsIncluded = form.IsIncluded, - Language = form.Language.HasValue ? ((int)form.Language).ToString() : "", - ModifiedBy = form.ModifiedBy, - ReasonCode = form.ReasonCode.HasValue ? ((int)form.ReasonCode).ToString() : "" - }; - } - private static void SetBaseFormProperties(this FormDto dto, Form form) { if (form != null) @@ -186,11 +167,21 @@ private static void SetBaseFormProperties(this FormDto dto, Form form) dto.VisitId = form.VisitId; dto.Status = form.Status; dto.Language = form.Language.HasValue ? ((int)form.Language).ToString() : ""; + dto.Mode = form.Mode.HasValue ? ((int)form.Mode).ToString() : ""; + dto.RemoteMode = form.RemoteMode.HasValue ? ((int)form.RemoteMode).ToString() : ""; + dto.RemoteReasonCode = form.RemoteReasonCode.HasValue ? ((int)form.RemoteReasonCode).ToString() : ""; dto.IsIncluded = form.IsIncluded; dto.ReasonCode = form.ReasonCode.HasValue ? ((int)form.ReasonCode).ToString() : ""; } } + public static FormDto ToSummaryDto(this Form form, string formKind) + { + var dto = new FormDto(); + dto.SetBaseFormProperties(form); + return dto; + } + public static A1Dto ToFullDto(this A1 a1) { A1Dto dto = new A1Dto diff --git a/src/UDS.Net.API/UDS.Net.API.csproj b/src/UDS.Net.API/UDS.Net.API.csproj index a785f36..2f03223 100644 --- a/src/UDS.Net.API/UDS.Net.API.csproj +++ b/src/UDS.Net.API/UDS.Net.API.csproj @@ -4,7 +4,7 @@ net6.0 enable enable - 2.0.0-preview.2 + 2.0.0 ../docker-compose.dcproj c1dd1715-6fa0-4515-bcf2-6a7f6a0c11a5 diff --git a/src/UDS.Net.Dto/FormDto.cs b/src/UDS.Net.Dto/FormDto.cs index ee2f309..f10d63f 100644 --- a/src/UDS.Net.Dto/FormDto.cs +++ b/src/UDS.Net.Dto/FormDto.cs @@ -33,6 +33,12 @@ public class FormDto : BaseDto public string Language { get; set; } + public string Mode { get; set; } + + public string RemoteMode { get; set; } + + public string RemoteReasonCode { get; set; } + public bool? IsIncluded { get; set; } public string ReasonCode { get; set; } diff --git a/src/UDS.Net.Dto/UDS.Net.Dto.csproj b/src/UDS.Net.Dto/UDS.Net.Dto.csproj index 77af7d2..d396cf8 100644 --- a/src/UDS.Net.Dto/UDS.Net.Dto.csproj +++ b/src/UDS.Net.Dto/UDS.Net.Dto.csproj @@ -4,13 +4,13 @@ netstandard2.1 Library UDS.Net.Dto - 2.0.0-preview.2 + 2.0.0 Sanders-Brown Center on Aging UDS data transfer objects for use with API UK-SBCoA Dtos for API https://github.com/UK-SBCoA/uniform-data-set-dotnet-api - 2.0.0-preview.2 + 2.0.0 diff --git a/src/UDS.Net.sln b/src/UDS.Net.sln index ad277ef..a59b198 100644 --- a/src/UDS.Net.sln +++ b/src/UDS.Net.sln @@ -9,7 +9,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UDS.Net.API.Client", "UDS.N EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UDS.Net.Dto", "UDS.Net.Dto\UDS.Net.Dto.csproj", "{E620B892-269C-423B-9AEF-375131FA6B0C}" EndProject -Project("{9344BDBB-3E7F-41FC-A0DD-8665D75EE146}") = "docker-compose", "docker-compose.dcproj", "{A9582D22-7F1F-4241-BFCF-67807EDFE12C}" +Project("{9344BDBB-3E7F-41FC-A0DD-8665D75EE146}") = "docker-compose", "docker-compose.dcproj", "{E4B7C1D1-9D71-47D1-A194-2B327208D107}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -29,10 +29,10 @@ Global {E620B892-269C-423B-9AEF-375131FA6B0C}.Debug|Any CPU.Build.0 = Debug|Any CPU {E620B892-269C-423B-9AEF-375131FA6B0C}.Release|Any CPU.ActiveCfg = Release|Any CPU {E620B892-269C-423B-9AEF-375131FA6B0C}.Release|Any CPU.Build.0 = Release|Any CPU - {A9582D22-7F1F-4241-BFCF-67807EDFE12C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A9582D22-7F1F-4241-BFCF-67807EDFE12C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A9582D22-7F1F-4241-BFCF-67807EDFE12C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {A9582D22-7F1F-4241-BFCF-67807EDFE12C}.Release|Any CPU.Build.0 = Release|Any CPU + {E4B7C1D1-9D71-47D1-A194-2B327208D107}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E4B7C1D1-9D71-47D1-A194-2B327208D107}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E4B7C1D1-9D71-47D1-A194-2B327208D107}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E4B7C1D1-9D71-47D1-A194-2B327208D107}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -41,6 +41,6 @@ Global SolutionGuid = {D39D5BFF-1FB6-4543-9752-418308400A84} EndGlobalSection GlobalSection(MonoDevelopProperties) = preSolution - version = 2.0.0-preview.2 + version = 2.0.0 EndGlobalSection EndGlobal