From 7195395b36133961b1b43adb75d39f685b41ba40 Mon Sep 17 00:00:00 2001 From: Sergey Galuzo Date: Thu, 19 Dec 2024 12:01:56 -0800 Subject: [PATCH] comment --- .../Features/Schema/Sql/Tables/Resource.sql | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Microsoft.Health.Fhir.SqlServer/Features/Schema/Sql/Tables/Resource.sql b/src/Microsoft.Health.Fhir.SqlServer/Features/Schema/Sql/Tables/Resource.sql index f550f6929b..9008e20cdf 100644 --- a/src/Microsoft.Health.Fhir.SqlServer/Features/Schema/Sql/Tables/Resource.sql +++ b/src/Microsoft.Health.Fhir.SqlServer/Features/Schema/Sql/Tables/Resource.sql @@ -1,4 +1,7 @@ -CREATE TABLE dbo.CurrentResource -- This is replaced by view CurrentResource +-- Our code generator, that creates class wrappers on database objects, is not able to deal with views, but we stil want to refer to view objects in the code. +-- Workaround is to create table that looks like view, so code generator picks it up, and immediately drop it. +-- This would not be needed at all, if we followed different class generation strategy. +CREATE TABLE dbo.CurrentResource -- This is replaced by view CurrentResource ( ResourceTypeId smallint NOT NULL, ResourceId varchar(64) COLLATE Latin1_General_100_CS_AS NOT NULL,