From 26eb464d1fe295d58cfa4d970961203ddd98050f Mon Sep 17 00:00:00 2001
From: Oddvocado <96854090+Oddvocado@users.noreply.github.com>
Date: Wed, 30 Oct 2024 08:43:32 -0400
Subject: [PATCH 1/7] Adds missing C2T properties
---
src/UDS.Net.API/Entities/C2.cs | 9 +++++++++
src/UDS.Net.API/Extensions/DtoToEntityMapper.cs | 9 +++++++++
src/UDS.Net.API/Extensions/EntityToDtoMapper.cs | 9 +++++++++
src/UDS.Net.Dto/C2Dto.cs | 9 +++++++++
4 files changed, 36 insertions(+)
diff --git a/src/UDS.Net.API/Entities/C2.cs b/src/UDS.Net.API/Entities/C2.cs
index ee7be61..b02478a 100644
--- a/src/UDS.Net.API/Entities/C2.cs
+++ b/src/UDS.Net.API/Entities/C2.cs
@@ -19,6 +19,7 @@ public class C2 : Form
public int? MOCAVIS { get; set; }
public int? MOCAHEAR { get; set; }
public int? MOCATOTS { get; set; }
+ public int? MOCBTOTS { get; set; }
public int? MOCATRAI { get; set; }
public int? MOCACUBE { get; set; }
public int? MOCACLOC { get; set; }
@@ -96,6 +97,8 @@ public class C2 : Form
public int? REYMETHOD { get; set; }
public int? REYTCOR { get; set; }
public int? REYFPOS { get; set; }
+ public int? VNTTOTW { get; set; }
+ public int? VNTPCNC { get; set; }
public int? CERAD1REC { get; set; }
public int? CERAD1READ { get; set; }
public int? CERAD1INT { get; set; }
@@ -110,6 +113,12 @@ public class C2 : Form
public int? CERADJ6INT { get; set; }
public int? CERADJ7YES { get; set; }
public int? CERADJ7NO { get; set; }
+ public int? OTRAILA { get; set; }
+ public int? OTRLARR { get; set; }
+ public int? OTRALI { get; set; }
+ public int? OTRAILB { get; set; }
+ public int? OTRLBRR { get; set; }
+ public int? OTRLBLI { get; set; }
public int? MINTTOTS { get; set; }
public int? MINTTOTW { get; set; }
public int? MINTSCNG { get; set; }
diff --git a/src/UDS.Net.API/Extensions/DtoToEntityMapper.cs b/src/UDS.Net.API/Extensions/DtoToEntityMapper.cs
index 5870cfc..0b277f0 100644
--- a/src/UDS.Net.API/Extensions/DtoToEntityMapper.cs
+++ b/src/UDS.Net.API/Extensions/DtoToEntityMapper.cs
@@ -1148,6 +1148,7 @@ public static bool Update(this C2 entity, C2Dto dto)
entity.MOCAVIS = dto.MOCAVIS;
entity.MOCAHEAR = dto.MOCAHEAR;
entity.MOCATOTS = dto.MOCATOTS;
+ entity.MOCBTOTS = dto.MOCBTOTS;
entity.MOCATRAI = dto.MOCATRAI;
entity.MOCACUBE = dto.MOCACUBE;
entity.MOCACLOC = dto.MOCACLOC;
@@ -1224,6 +1225,8 @@ public static bool Update(this C2 entity, C2Dto dto)
entity.REYMETHOD = dto.REYMETHOD;
entity.REYTCOR = dto.REYTCOR;
entity.REYFPOS = dto.REYFPOS;
+ entity.VNTTOTW = dto.VNTTOTW;
+ entity.VNTPCNC = dto.VNTPCNC;
entity.CERAD1REC = dto.CERAD1REC;
entity.CERAD1READ = dto.CERAD1READ;
entity.CERAD1INT = dto.CERAD1INT;
@@ -1238,6 +1241,12 @@ public static bool Update(this C2 entity, C2Dto dto)
entity.CERADJ6INT = dto.CERADJ6INT;
entity.CERADJ7YES = dto.CERADJ7YES;
entity.CERADJ7NO = dto.CERADJ7NO;
+ entity.OTRAILA = dto.OTRAILA;
+ entity.OTRLARR = dto.OTRLARR;
+ entity.OTRALI = dto.OTRALI ;
+ entity.OTRAILB = dto.OTRAILB;
+ entity.OTRLBRR = dto.OTRLBRR;
+ entity.OTRLBLI = dto.OTRLBLI;
entity.MINTTOTS = dto.MINTTOTS;
entity.MINTTOTW = dto.MINTTOTW;
entity.MINTSCNG = dto.MINTSCNG;
diff --git a/src/UDS.Net.API/Extensions/EntityToDtoMapper.cs b/src/UDS.Net.API/Extensions/EntityToDtoMapper.cs
index ba5b783..d1176d8 100644
--- a/src/UDS.Net.API/Extensions/EntityToDtoMapper.cs
+++ b/src/UDS.Net.API/Extensions/EntityToDtoMapper.cs
@@ -1175,6 +1175,7 @@ public static C2Dto ToFullDto(this C2 c2)
MOCAVIS = c2.MOCAVIS,
MOCAHEAR = c2.MOCAHEAR,
MOCATOTS = c2.MOCATOTS,
+ MOCBTOTS = c2.MOCBTOTS,
MOCATRAI = c2.MOCATRAI,
MOCACUBE = c2.MOCACUBE,
MOCACLOC = c2.MOCACLOC,
@@ -1251,6 +1252,8 @@ public static C2Dto ToFullDto(this C2 c2)
REYMETHOD = c2.REYMETHOD,
REYTCOR = c2.REYTCOR,
REYFPOS = c2.REYFPOS,
+ VNTTOTW = c2.VNTTOTW,
+ VNTPCNC = c2.VNTPCNC,
CERAD1REC = c2.CERAD1REC,
CERAD1READ = c2.CERAD1READ,
CERAD1INT = c2.CERAD1INT,
@@ -1265,6 +1268,12 @@ public static C2Dto ToFullDto(this C2 c2)
CERADJ6INT = c2.CERADJ6INT,
CERADJ7YES = c2.CERADJ7YES,
CERADJ7NO = c2.CERADJ7NO,
+ OTRAILA = c2.OTRAILA,
+ OTRLARR = c2.OTRLARR,
+ OTRALI = c2.OTRALI ,
+ OTRAILB = c2.OTRAILB,
+ OTRLBRR = c2.OTRLBRR,
+ OTRLBLI = c2.OTRLBLI,
MINTTOTS = c2.MINTTOTS,
MINTTOTW = c2.MINTTOTW,
MINTSCNG = c2.MINTSCNG,
diff --git a/src/UDS.Net.Dto/C2Dto.cs b/src/UDS.Net.Dto/C2Dto.cs
index 8010732..598ec2f 100644
--- a/src/UDS.Net.Dto/C2Dto.cs
+++ b/src/UDS.Net.Dto/C2Dto.cs
@@ -11,6 +11,7 @@ public class C2Dto : FormDto
public int? MOCAVIS { get; set; }
public int? MOCAHEAR { get; set; }
public int? MOCATOTS { get; set; }
+ public int? MOCBTOTS { get; set; }
public int? MOCATRAI { get; set; }
public int? MOCACUBE { get; set; }
public int? MOCACLOC { get; set; }
@@ -87,6 +88,8 @@ public class C2Dto : FormDto
public int? REYMETHOD { get; set; }
public int? REYTCOR { get; set; }
public int? REYFPOS { get; set; }
+ public int? VNTTOTW { get; set; }
+ public int? VNTPCNC { get; set; }
public int? CERAD1REC { get; set; }
public int? CERAD1READ { get; set; }
public int? CERAD1INT { get; set; }
@@ -101,6 +104,12 @@ public class C2Dto : FormDto
public int? CERADJ6INT { get; set; }
public int? CERADJ7YES { get; set; }
public int? CERADJ7NO { get; set; }
+ public int? OTRAILA { get; set; }
+ public int? OTRLARR { get; set; }
+ public int? OTRALI { get; set; }
+ public int? OTRAILB { get; set; }
+ public int? OTRLBRR { get; set; }
+ public int? OTRLBLI { get; set; }
public int? MINTTOTS { get; set; }
public int? MINTTOTW { get; set; }
public int? MINTSCNG { get; set; }
From 0fe7eb7038abd06d9127c8f74e701c58aa74f655 Mon Sep 17 00:00:00 2001
From: Oddvocado <96854090+Oddvocado@users.noreply.github.com>
Date: Wed, 30 Oct 2024 08:48:37 -0400
Subject: [PATCH 2/7] C2T DB Migration
---
...1030124721_UpdateC2TProperties.Designer.cs | 8947 +++++++++++++++++
.../20241030124721_UpdateC2TProperties.cs | 108 +
.../Migrations/ApiDbContextModelSnapshot.cs | 27 +
3 files changed, 9082 insertions(+)
create mode 100644 src/UDS.Net.API/Data/Migrations/20241030124721_UpdateC2TProperties.Designer.cs
create mode 100644 src/UDS.Net.API/Data/Migrations/20241030124721_UpdateC2TProperties.cs
diff --git a/src/UDS.Net.API/Data/Migrations/20241030124721_UpdateC2TProperties.Designer.cs b/src/UDS.Net.API/Data/Migrations/20241030124721_UpdateC2TProperties.Designer.cs
new file mode 100644
index 0000000..e6b906d
--- /dev/null
+++ b/src/UDS.Net.API/Data/Migrations/20241030124721_UpdateC2TProperties.Designer.cs
@@ -0,0 +1,8947 @@
+//
+using System;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Metadata;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+using UDS.Net.API.Data;
+
+#nullable disable
+
+namespace UDS.Net.API.Data.Migrations
+{
+ [DbContext(typeof(ApiDbContext))]
+ [Migration("20241030124721_UpdateC2TProperties")]
+ partial class UpdateC2TProperties
+ {
+ ///
+ protected override void BuildTargetModel(ModelBuilder modelBuilder)
+ {
+#pragma warning disable 612, 618
+ modelBuilder
+ .HasAnnotation("ProductVersion", "8.0.10")
+ .HasAnnotation("Relational:MaxIdentifierLength", 128);
+
+ SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
+
+ modelBuilder.Entity("UDS.Net.API.Entities.A1", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("FormId")
+ .HasColumnOrder(0);
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("ADINAT")
+ .HasColumnType("int");
+
+ b.Property("ADISTATE")
+ .HasColumnType("int");
+
+ b.Property("BIRTHMO")
+ .HasColumnType("int");
+
+ b.Property("BIRTHSEX")
+ .HasColumnType("int");
+
+ b.Property("BIRTHYR")
+ .HasColumnType("int");
+
+ b.Property("CHLDHDCTRY")
+ .HasMaxLength(3)
+ .HasColumnType("nvarchar(3)");
+
+ b.Property("CreatedAt")
+ .HasColumnType("datetime2");
+
+ b.Property("CreatedBy")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("DeletedBy")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("EDUC")
+ .HasColumnType("int");
+
+ b.Property("ETHAFAMER")
+ .HasColumnType("int");
+
+ b.Property("ETHASNOTH")
+ .HasColumnType("int");
+
+ b.Property("ETHASNOTHX")
+ .HasMaxLength(60)
+ .HasColumnType("nvarchar(60)");
+
+ b.Property("ETHBLKOTH")
+ .HasColumnType("int");
+
+ b.Property("ETHBLKOTHX")
+ .HasMaxLength(60)
+ .HasColumnType("nvarchar(60)");
+
+ b.Property("ETHCHAMOR")
+ .HasColumnType("int");
+
+ b.Property("ETHCHINESE")
+ .HasColumnType("int");
+
+ b.Property("ETHCUBAN")
+ .HasColumnType("int");
+
+ b.Property("ETHDOMIN")
+ .HasColumnType("int");
+
+ b.Property("ETHEGYPT")
+ .HasColumnType("int");
+
+ b.Property("ETHENGLISH")
+ .HasColumnType("int");
+
+ b.Property("ETHETHIOP")
+ .HasColumnType("int");
+
+ b.Property("ETHFIJIAN")
+ .HasColumnType("int");
+
+ b.Property("ETHFILIP")
+ .HasColumnType("int");
+
+ b.Property("ETHGERMAN")
+ .HasColumnType("int");
+
+ b.Property("ETHGUATEM")
+ .HasColumnType("int");
+
+ b.Property("ETHHAITIAN")
+ .HasColumnType("int");
+
+ b.Property("ETHHAWAII")
+ .HasColumnType("int");
+
+ b.Property("ETHHISOTH")
+ .HasColumnType("int");
+
+ b.Property("ETHHISOTHX")
+ .HasMaxLength(60)
+ .HasColumnType("nvarchar(60)");
+
+ b.Property("ETHINDIA")
+ .HasColumnType("int");
+
+ b.Property("ETHIRAN")
+ .HasColumnType("int");
+
+ b.Property("ETHIRAQI")
+ .HasColumnType("int");
+
+ b.Property("ETHIRISH")
+ .HasColumnType("int");
+
+ b.Property("ETHISPANIC")
+ .HasColumnType("int");
+
+ b.Property("ETHISRAEL")
+ .HasColumnType("int");
+
+ b.Property("ETHITALIAN")
+ .HasColumnType("int");
+
+ b.Property("ETHJAMAICA")
+ .HasColumnType("int");
+
+ b.Property("ETHJAPAN")
+ .HasColumnType("int");
+
+ b.Property("ETHKOREAN")
+ .HasColumnType("int");
+
+ b.Property("ETHLEBANON")
+ .HasColumnType("int");
+
+ b.Property("ETHMARSHAL")
+ .HasColumnType("int");
+
+ b.Property("ETHMENAOTH")
+ .HasColumnType("int");
+
+ b.Property("ETHMENAOTX")
+ .HasMaxLength(60)
+ .HasColumnType("nvarchar(60)");
+
+ b.Property("ETHMEXICAN")
+ .HasColumnType("int");
+
+ b.Property("ETHNHPIOTH")
+ .HasColumnType("int");
+
+ b.Property("ETHNHPIOTX")
+ .HasMaxLength(60)
+ .HasColumnType("nvarchar(60)");
+
+ b.Property("ETHNIGERIA")
+ .HasColumnType("int");
+
+ b.Property("ETHPOLISH")
+ .HasColumnType("int");
+
+ b.Property("ETHPUERTO")
+ .HasColumnType("int");
+
+ b.Property("ETHSALVA")
+ .HasColumnType("int");
+
+ b.Property("ETHSAMOAN")
+ .HasColumnType("int");
+
+ b.Property("ETHSCOTT")
+ .HasColumnType("int");
+
+ b.Property("ETHSOMALI")
+ .HasColumnType("int");
+
+ b.Property("ETHSYRIA")
+ .HasColumnType("int");
+
+ b.Property("ETHTONGAN")
+ .HasColumnType("int");
+
+ b.Property("ETHVIETNAM")
+ .HasColumnType("int");
+
+ b.Property("ETHWHIOTH")
+ .HasColumnType("int");
+
+ b.Property("ETHWHIOTHX")
+ .HasMaxLength(60)
+ .HasColumnType("nvarchar(60)");
+
+ b.Property("EXRTIME")
+ .HasColumnType("int");
+
+ b.Property("FRMDATE")
+ .HasColumnType("datetime2")
+ .HasColumnName("FRMDATE")
+ .HasColumnOrder(3);
+
+ b.Property("GENDKN")
+ .HasColumnType("int");
+
+ b.Property("GENMAN")
+ .HasColumnType("int");
+
+ b.Property("GENNOANS")
+ .HasColumnType("int");
+
+ b.Property("GENNONBI")
+ .HasColumnType("int");
+
+ b.Property("GENOTH")
+ .HasColumnType("int");
+
+ b.Property("GENOTHX")
+ .HasMaxLength(60)
+ .HasColumnType("nvarchar(60)");
+
+ b.Property("GENTRMAN")
+ .HasColumnType("int");
+
+ b.Property("GENTRWOMAN")
+ .HasColumnType("int");
+
+ b.Property("GENTWOSPIR")
+ .HasColumnType("int");
+
+ b.Property("GENWOMAN")
+ .HasColumnType("int");
+
+ b.Property("HANDED")
+ .HasColumnType("int");
+
+ b.Property("INITIALS")
+ .IsRequired()
+ .HasMaxLength(3)
+ .HasColumnType("nvarchar(3)")
+ .HasColumnName("INITIALS")
+ .HasColumnOrder(4);
+
+ b.Property("INTERSEX")
+ .HasColumnType("int");
+
+ b.Property("IsDeleted")
+ .HasColumnType("bit");
+
+ b.Property("LANG")
+ .HasColumnType("int")
+ .HasColumnName("LANG")
+ .HasColumnOrder(5);
+
+ b.Property("LIVSITUA")
+ .HasColumnType("int");
+
+ b.Property("LVLEDUC")
+ .HasColumnType("int");
+
+ b.Property("MARISTAT")
+ .HasColumnType("int");
+
+ b.Property("MEDVA")
+ .HasColumnType("int");
+
+ b.Property("MEMTEN")
+ .HasColumnType("int");
+
+ b.Property("MEMTROUB")
+ .HasColumnType("int");
+
+ b.Property("MEMWORS")
+ .HasColumnType("int");
+
+ b.Property("MODE")
+ .HasColumnType("int")
+ .HasColumnName("MODE")
+ .HasColumnOrder(6);
+
+ b.Property("ModifiedBy")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("NOT")
+ .HasColumnType("int")
+ .HasColumnName("NOT")
+ .HasColumnOrder(9);
+
+ b.Property("PREDOMLAN")
+ .HasColumnType("int");
+
+ b.Property("PREDOMLANX")
+ .HasMaxLength(60)
+ .HasColumnType("nvarchar(60)");
+
+ b.Property("PRIOCC")
+ .HasColumnType("int");
+
+ b.Property("RACEAIAN")
+ .HasColumnType("int");
+
+ b.Property("RACEAIANX")
+ .HasMaxLength(60)
+ .HasColumnType("nvarchar(60)");
+
+ b.Property("RACEASIAN")
+ .HasColumnType("int");
+
+ b.Property("RACEBLACK")
+ .HasColumnType("int");
+
+ b.Property("RACEMENA")
+ .HasColumnType("int");
+
+ b.Property("RACENHPI")
+ .HasColumnType("int");
+
+ b.Property("RACEUNKN")
+ .HasColumnType("int");
+
+ b.Property("RACEWHITE")
+ .HasColumnType("int");
+
+ b.Property("REFCTRREGX")
+ .HasMaxLength(60)
+ .HasColumnType("nvarchar(60)");
+
+ b.Property("REFCTRSOCX")
+ .HasMaxLength(60)
+ .HasColumnType("nvarchar(60)");
+
+ b.Property("REFERSC")
+ .HasColumnType("int");
+
+ b.Property("REFERSCX")
+ .HasMaxLength(60)
+ .HasColumnType("nvarchar(60)");
+
+ b.Property("REFLEARNED")
+ .HasColumnType("int");
+
+ b.Property("REFOTHMEDX")
+ .HasMaxLength(60)
+ .HasColumnType("nvarchar(60)");
+
+ b.Property("REFOTHREGX")
+ .HasMaxLength(60)
+ .HasColumnType("nvarchar(60)");
+
+ b.Property("REFOTHWEBX")
+ .HasMaxLength(60)
+ .HasColumnType("nvarchar(60)");
+
+ b.Property("REFOTHX")
+ .HasMaxLength(60)
+ .HasColumnType("nvarchar(60)");
+
+ b.Property("RESIDENC")
+ .HasColumnType("int");
+
+ b.Property("RMMODE")
+ .HasColumnType("int")
+ .HasColumnName("RMMODE")
+ .HasColumnOrder(8);
+
+ b.Property("RMREAS")
+ .HasColumnType("int")
+ .HasColumnName("RMREASON")
+ .HasColumnOrder(7);
+
+ b.Property("SERVED")
+ .HasColumnType("int");
+
+ b.Property("SEXORNBI")
+ .HasColumnType("int");
+
+ b.Property("SEXORNDNK")
+ .HasColumnType("int");
+
+ b.Property("SEXORNGAY")
+ .HasColumnType("int");
+
+ b.Property("SEXORNHET")
+ .HasColumnType("int");
+
+ b.Property("SEXORNNOAN")
+ .HasColumnType("int");
+
+ b.Property("SEXORNOTH")
+ .HasColumnType("int");
+
+ b.Property("SEXORNOTHX")
+ .HasMaxLength(60)
+ .HasColumnType("nvarchar(60)");
+
+ b.Property("SEXORNTWOS")
+ .HasColumnType("int");
+
+ b.Property("SOURCENW")
+ .HasColumnType("int");
+
+ b.Property("Status")
+ .IsRequired()
+ .HasMaxLength(20)
+ .HasColumnType("nvarchar(20)")
+ .HasColumnOrder(2);
+
+ b.Property("VisitId")
+ .HasColumnType("int")
+ .HasColumnOrder(1);
+
+ b.Property("ZIP")
+ .HasMaxLength(3)
+ .HasColumnType("nvarchar(3)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("VisitId")
+ .IsUnique();
+
+ b.ToTable("tbl_A1s");
+ });
+
+ modelBuilder.Entity("UDS.Net.API.Entities.A1a", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("FormId")
+ .HasColumnOrder(0);
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("ABANDONED")
+ .HasColumnType("int")
+ .HasComment("21. I often feel abandoned");
+
+ b.Property("ACTAFRAID")
+ .HasColumnType("int")
+ .HasComment("36. In your day-to-day life how often do people act as if they are afraid of you?");
+
+ b.Property("BILLPAY")
+ .HasColumnType("int")
+ .HasComment("9. How difficult is it for you to meet monthly payments on your bills?");
+
+ b.Property("CHILDCOMM")
+ .HasColumnType("int")
+ .HasComment("24. If you have children, how often do you have contact with your children (including child[ren]-in-law and stepchild[ren]) either in person, by phone, mail, or email (e.g., any online interaction)?");
+
+ b.Property("CLOSEFRND")
+ .HasColumnType("int")
+ .HasComment("22. I miss having a really good friend");
+
+ b.Property("COMPCOMM")
+ .HasColumnType("int")
+ .HasComment("15a. Where would you place yourself on this ladder compared to others in your community (or neighborhood)? Please mark the number where you would place yourself.");
+
+ b.Property("COMPUSA")
+ .HasColumnType("int")
+ .HasComment("15b. Where would you place yourself on this ladder compared to others in the U.S.?");
+
+ b.Property("CreatedAt")
+ .HasColumnType("datetime2");
+
+ b.Property("CreatedBy")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("DELAYMED")
+ .HasColumnType("int")
+ .HasComment("28. In the past year, how often did you delay seeking medical attention for a problem that was bothering you?");
+
+ b.Property("DOCADVICE")
+ .HasColumnType("int")
+ .HasComment("31. In the past year, how often did you follow a doctor's advice or treatment plan when it was given?");
+
+ b.Property("DeletedBy")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("EATLESS")
+ .HasColumnType("int")
+ .HasComment("11. At any time, did you ever eat less than you felt you should because there wasn't enough money to buy food?");
+
+ b.Property("EATLESSYR")
+ .HasColumnType("int")
+ .HasComment("12. In the last 12 months, did you ever eat less than you felt you should because there wasn't enough money to buy food?");
+
+ b.Property("EMPTINESS")
+ .HasColumnType("int")
+ .HasComment("18. I experience a general sense of emptiness");
+
+ b.Property("EXPAGE")
+ .HasColumnType("bit")
+ .HasComment("39a4. Main reason--Your age");
+
+ b.Property("EXPANCEST")
+ .HasColumnType("bit")
+ .HasComment("39a1. Main reason--Your Ancestry or National Origins");
+
+ b.Property("EXPAPPEAR")
+ .HasColumnType("bit")
+ .HasComment("39a8. Main reason--Some other aspect of your physical appearance");
+
+ b.Property("EXPDISAB")
+ .HasColumnType("bit")
+ .HasComment("39a11. Main reason--A physical disability");
+
+ b.Property("EXPEDUCINC")
+ .HasColumnType("bit")
+ .HasComment("39a10. Main reason--Your education or income level");
+
+ b.Property("EXPGENDER")
+ .HasColumnType("bit")
+ .HasComment("39a2. Main reason--Your gender");
+
+ b.Property("EXPHEIGHT")
+ .HasColumnType("bit")
+ .HasComment("39a6. Main reason--Your height");
+
+ b.Property("EXPNOANS")
+ .HasColumnType("bit")
+ .HasComment("39a15. Main reason--Prefer not to answer");
+
+ b.Property("EXPNOTAPP")
+ .HasColumnType("bit")
+ .HasComment("39a14. Main reason -- not applicable - I do not have these experiences in my day to day life");
+
+ b.Property("EXPOTHER")
+ .HasColumnType("bit")
+ .HasComment("39a13. Main reason -- Other");
+
+ b.Property("EXPRACE")
+ .HasColumnType("bit")
+ .HasComment("39a3. Main reason--Your race");
+
+ b.Property("EXPRELIG")
+ .HasColumnType("bit")
+ .HasComment("39a5. Main reason--Your religion");
+
+ b.Property("EXPSEXORN")
+ .HasColumnType("bit")
+ .HasComment("39a9. Main reason--Your sexual orientation");
+
+ b.Property("EXPSKIN")
+ .HasColumnType("bit")
+ .HasComment("39a12. Main reason--Your shade of skin color");
+
+ b.Property("EXPSTRS")
+ .HasColumnType("int")
+ .HasComment("40. When you have had day-to-day experiences like those in questions 33 to 38, would you say they have been very stressful, moderately stressful, or not stressful?");
+
+ b.Property("EXPWEIGHT")
+ .HasColumnType("bit")
+ .HasComment("39a7. Main reason--Your weight");
+
+ b.Property("FAMCOMP")
+ .HasColumnType("int")
+ .HasComment("15c. Thinking of your childhood, where would your family have been placed on this ladder compared to others in your community (or neighborhood)?");
+
+ b.Property("FINSATIS")
+ .HasColumnType("int")
+ .HasComment("8. How satisfied are you with your current personal financial condition?");
+
+ b.Property("FINUPSET")
+ .HasColumnType("int")
+ .HasComment("10. If you have had financial problems that lasted twelve months or longer, how upsetting has it been to you?");
+
+ b.Property("FRIENDCOMM")
+ .HasColumnType("int")
+ .HasComment("25. How often do you have contact with close friends either in person, by phone, mail, or email (e.g., any online interaction)?");
+
+ b.Property("FRIENDS")
+ .HasColumnType("int")
+ .HasComment("20. I feel like I don't have enough friends");
+
+ b.Property("FRMDATE")
+ .HasColumnType("datetime2")
+ .HasColumnName("FRMDATE")
+ .HasColumnOrder(3);
+
+ b.Property("GUARD2EDU")
+ .HasColumnType("int")
+ .HasComment("17. If there was a second person who raised you (e.g., your mother, father, grandmother, etc.?), what was that person's highest level of education completed?");
+
+ b.Property("GUARD2REL")
+ .HasColumnType("int")
+ .HasComment("17a. What was this second person's relationship to you (if applicable)?");
+
+ b.Property("GUARD2RELX")
+ .HasMaxLength(60)
+ .HasColumnType("nvarchar(60)")
+ .HasComment("17a1. Specify other relationship");
+
+ b.Property("GUARDEDU")
+ .HasColumnType("int")
+ .HasComment("16. Thinking of the person who raised you, what was their highest level of education completed?");
+
+ b.Property("GUARDREL")
+ .HasColumnType("int")
+ .HasComment("16a. What was this person's relationship to you?");
+
+ b.Property("GUARDRELX")
+ .HasMaxLength(60)
+ .HasColumnType("nvarchar(60)")
+ .HasComment("16a1. Specify other relationship");
+
+ b.Property("HEALTHACC")
+ .HasColumnType("int")
+ .HasComment("32. Overall, which of these describes your health insurance, access to healthcare services, and access to medications?");
+
+ b.Property("INCOMEYR")
+ .HasColumnType("int")
+ .HasComment("7. Which of these income groups represents your household income for the past year? Include income from all sources such as wages, salaries, social security or retirement benefits, help from relatives, rent from property, and so forth.");
+
+ b.Property("INITIALS")
+ .IsRequired()
+ .HasMaxLength(3)
+ .HasColumnType("nvarchar(3)")
+ .HasColumnName("INITIALS")
+ .HasColumnOrder(4);
+
+ b.Property("IsDeleted")
+ .HasColumnType("bit");
+
+ b.Property("LANG")
+ .HasColumnType("int")
+ .HasColumnName("LANG")
+ .HasColumnOrder(5);
+
+ b.Property("LESSCOURT")
+ .HasColumnType("int")
+ .HasComment("33. In your day-to-day life how often are you treated with less courtesy or respect than other people?");
+
+ b.Property("LESSMEDS")
+ .HasColumnType("int")
+ .HasComment("13. At any time, have you ended up taking less medication than was prescribed for you because of the cost?");
+
+ b.Property("LESSMEDSYR")
+ .HasColumnType("int")
+ .HasComment("14. In the last 12 months, have you ended up taking less medication than was prescribed for you because of the cost?");
+
+ b.Property("MISSEDFUP")
+ .HasColumnType("int")
+ .HasComment("30. In the past year, how often did you miss a follow-up medical appointment that was scheduled?");
+
+ b.Property("MISSPEOPLE")
+ .HasColumnType("int")
+ .HasComment("19. I miss having people around");
+
+ b.Property("MODE")
+ .HasColumnType("int")
+ .HasColumnName("MODE")
+ .HasColumnOrder(6);
+
+ b.Property("ModifiedBy")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("NOT")
+ .HasColumnType("int")
+ .HasColumnName("NOT")
+ .HasColumnOrder(9);
+
+ b.Property("NOTSMART")
+ .HasColumnType("int")
+ .HasComment("35. In your day-to-day life how often do people act as if they think you are not smart?");
+
+ b.Property("OWNSCAR")
+ .HasColumnType("int")
+ .HasComment("1. Do you or someone in your household currently own a car?");
+
+ b.Property("PARENTCOMM")
+ .HasColumnType("int")
+ .HasComment("23. If your parents are still alive, how often do you have contact with them (including mother, father, mother-in-law, and father-in-law) either in person, by phone, mail, or email (e.g., any online interaction)?");
+
+ b.Property("PARTICIPATE")
+ .HasColumnType("int")
+ .HasComment("26. How often do you participate in activities outside the home (e.g., religious activities, educational activities, volunteer work, paid work, or activities with groups or organizations)?");
+
+ b.Property("POORMEDTRT")
+ .HasColumnType("int")
+ .HasComment("38. How frequently did you receive poorer service or treatment from doctors or in hospitals compared to other people?");
+
+ b.Property("POORSERV")
+ .HasColumnType("int")
+ .HasComment("34. In your day-to-day life how often do you receive poorer service than other people at restaurants or stores?");
+
+ b.Property("RMMODE")
+ .HasColumnType("int")
+ .HasColumnName("RMMODE")
+ .HasColumnOrder(8);
+
+ b.Property("RMREAS")
+ .HasColumnType("int")
+ .HasColumnName("RMREASON")
+ .HasColumnOrder(7);
+
+ b.Property("SAFECOMM")
+ .HasColumnType("int")
+ .HasComment("27b. How safe do you feel in your community (or neighborhood)?");
+
+ b.Property("SAFEHOME")
+ .HasColumnType("int")
+ .HasComment("27a. How safe do you feel in your home?");
+
+ b.Property("SCRIPTPROB")
+ .HasColumnType("int")
+ .HasComment("29. In the past year, how often did you experience challenges in filling a prescription?");
+
+ b.Property("Status")
+ .IsRequired()
+ .HasMaxLength(20)
+ .HasColumnType("nvarchar(20)")
+ .HasColumnOrder(2);
+
+ b.Property("THREATENED")
+ .HasColumnType("int")
+ .HasComment("37. In your day-to-day life how often are you threatened or harassed?");
+
+ b.Property("TRANSPROB")
+ .HasColumnType("int")
+ .HasComment("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?");
+
+ b.Property("TRANSWORRY")
+ .HasColumnType("int")
+ .HasComment("4. In the past 30 days, how often did you worry about whether or not you would be able to get somewhere because of a problem with transportation?");
+
+ b.Property("TRSPACCESS")
+ .HasColumnType("int")
+ .HasComment("2. Do you have consistent access to transportation?");
+
+ b.Property("TRSPLONGER")
+ .HasColumnType("int")
+ .HasComment("5. In the past 30 days, how often did it take you longer to get somewhere than it would have taken you if you had different transportation?");
+
+ b.Property("TRSPMED")
+ .HasColumnType("int")
+ .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")
+ .HasColumnOrder(1);
+
+ b.HasKey("Id");
+
+ b.HasIndex("VisitId")
+ .IsUnique();
+
+ b.ToTable("tbl_A1as");
+ });
+
+ modelBuilder.Entity("UDS.Net.API.Entities.A2", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("FormId")
+ .HasColumnOrder(0);
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("CreatedAt")
+ .HasColumnType("datetime2");
+
+ b.Property("CreatedBy")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("DeletedBy")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("FRMDATE")
+ .HasColumnType("datetime2")
+ .HasColumnName("FRMDATE")
+ .HasColumnOrder(3);
+
+ b.Property("INCNTFRQ")
+ .HasColumnType("int");
+
+ b.Property("INCNTMDX")
+ .HasMaxLength(60)
+ .HasColumnType("nvarchar(60)");
+
+ b.Property("INCNTMOD")
+ .HasColumnType("int");
+
+ b.Property("INCNTTIM")
+ .HasColumnType("int");
+
+ b.Property("INITIALS")
+ .IsRequired()
+ .HasMaxLength(3)
+ .HasColumnType("nvarchar(3)")
+ .HasColumnName("INITIALS")
+ .HasColumnOrder(4);
+
+ b.Property("INKNOWN")
+ .HasColumnType("int");
+
+ b.Property("INLIVWTH")
+ .HasColumnType("int");
+
+ b.Property("INMEMTEN")
+ .HasColumnType("int");
+
+ b.Property("INMEMTROUB")
+ .HasColumnType("int");
+
+ b.Property("INMEMWORS")
+ .HasColumnType("int");
+
+ b.Property("INRELTO")
+ .HasColumnType("int");
+
+ b.Property("INRELY")
+ .HasColumnType("int");
+
+ b.Property("IsDeleted")
+ .HasColumnType("bit");
+
+ b.Property("LANG")
+ .HasColumnType("int")
+ .HasColumnName("LANG")
+ .HasColumnOrder(5);
+
+ b.Property("MODE")
+ .HasColumnType("int")
+ .HasColumnName("MODE")
+ .HasColumnOrder(6);
+
+ b.Property("ModifiedBy")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("NEWINF")
+ .HasColumnType("int");
+
+ b.Property("NOT")
+ .HasColumnType("int")
+ .HasColumnName("NOT")
+ .HasColumnOrder(9);
+
+ b.Property("RMMODE")
+ .HasColumnType("int")
+ .HasColumnName("RMMODE")
+ .HasColumnOrder(8);
+
+ b.Property("RMREAS")
+ .HasColumnType("int")
+ .HasColumnName("RMREASON")
+ .HasColumnOrder(7);
+
+ b.Property("Status")
+ .IsRequired()
+ .HasMaxLength(20)
+ .HasColumnType("nvarchar(20)")
+ .HasColumnOrder(2);
+
+ b.Property("VisitId")
+ .HasColumnType("int")
+ .HasColumnOrder(1);
+
+ b.HasKey("Id");
+
+ b.HasIndex("VisitId")
+ .IsUnique();
+
+ b.ToTable("tbl_A2s");
+ });
+
+ modelBuilder.Entity("UDS.Net.API.Entities.A3", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("FormId")
+ .HasColumnOrder(0);
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("AFFFAMM")
+ .HasColumnType("int");
+
+ b.Property("CreatedAt")
+ .HasColumnType("datetime2");
+
+ b.Property("CreatedBy")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("DADAGEO")
+ .HasColumnType("int");
+
+ b.Property("DADDAGE")
+ .HasColumnType("int");
+
+ b.Property("DADETPR")
+ .HasMaxLength(2)
+ .HasColumnType("nvarchar(2)");
+
+ b.Property("DADETSEC")
+ .HasMaxLength(2)
+ .HasColumnType("nvarchar(2)");
+
+ b.Property("DADMEVAL")
+ .HasColumnType("int");
+
+ b.Property("DADYOB")
+ .HasColumnType("int");
+
+ b.Property("DeletedBy")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("FRMDATE")
+ .HasColumnType("datetime2")
+ .HasColumnName("FRMDATE")
+ .HasColumnOrder(3);
+
+ b.Property("INITIALS")
+ .IsRequired()
+ .HasMaxLength(3)
+ .HasColumnType("nvarchar(3)")
+ .HasColumnName("INITIALS")
+ .HasColumnOrder(4);
+
+ b.Property("IsDeleted")
+ .HasColumnType("bit");
+
+ b.Property("KIDS")
+ .HasColumnType("int");
+
+ b.Property("LANG")
+ .HasColumnType("int")
+ .HasColumnName("LANG")
+ .HasColumnOrder(5);
+
+ b.Property("MODE")
+ .HasColumnType("int")
+ .HasColumnName("MODE")
+ .HasColumnOrder(6);
+
+ b.Property("MOMAGEO")
+ .HasColumnType("int");
+
+ b.Property("MOMDAGE")
+ .HasColumnType("int");
+
+ b.Property("MOMETPR")
+ .HasMaxLength(2)
+ .HasColumnType("nvarchar(2)");
+
+ b.Property("MOMETSEC")
+ .HasMaxLength(2)
+ .HasColumnType("nvarchar(2)");
+
+ b.Property("MOMMEVAL")
+ .HasColumnType("int");
+
+ b.Property("MOMYOB")
+ .HasColumnType("int");
+
+ b.Property("ModifiedBy")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property