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