From adf62c8dcc0db39714dba80fdefa141bd869fc31 Mon Sep 17 00:00:00 2001 From: "kham.vilaythong" Date: Tue, 12 May 2026 20:59:38 +1000 Subject: [PATCH] change namme and project --- API/FamilyTreeAPI/FamilyTreeAPI.csproj | 22 ++++++++----------- .../Repository/LookupRepository.cs | 4 ++-- API/FamilyTreeAPI/appsettings.json | 4 ++-- 3 files changed, 13 insertions(+), 17 deletions(-) diff --git a/API/FamilyTreeAPI/FamilyTreeAPI.csproj b/API/FamilyTreeAPI/FamilyTreeAPI.csproj index 2514b8c..c3ce2b2 100644 --- a/API/FamilyTreeAPI/FamilyTreeAPI.csproj +++ b/API/FamilyTreeAPI/FamilyTreeAPI.csproj @@ -5,27 +5,23 @@ enable enable Linux + true ..\docker-compose.dcproj - - - - - - + - - - - - - + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive all - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/API/FamilyTreeAPI/Repository/LookupRepository.cs b/API/FamilyTreeAPI/Repository/LookupRepository.cs index 318c70d..a7cbaf0 100644 --- a/API/FamilyTreeAPI/Repository/LookupRepository.cs +++ b/API/FamilyTreeAPI/Repository/LookupRepository.cs @@ -35,7 +35,7 @@ namespace FamilyTreeAPI.Repository string error = ""; try { - Lookup model = null!; + FamilyTreeAPI.Models.Lookup model = null!; bool ok = !checkDescription(desc, lookup.Type, lookup.Id); if (ok) { @@ -52,7 +52,7 @@ namespace FamilyTreeAPI.Repository } else { - Lookup? model1 = await _context.Lookups.FindAsync(lookup.Id); + FamilyTreeAPI.Models.Lookup? model1 = await _context.Lookups.FindAsync(lookup.Id); if (model1 != null) { model1.Description = desc; diff --git a/API/FamilyTreeAPI/appsettings.json b/API/FamilyTreeAPI/appsettings.json index 4282426..b7d0a45 100644 --- a/API/FamilyTreeAPI/appsettings.json +++ b/API/FamilyTreeAPI/appsettings.json @@ -2,8 +2,8 @@ "AppSettings": { "Secret": "Nepean Blue Mountain Super Secret SIGN AND VERIFY JWT TOKENS, BEARER TOKEN USE WHEN CALLING THIS API.", - "SQLConnectionString_o": "host=localhost;port=5432;database=FamilyTreeDB;username=postgres;password=Positive~1;", - "SQLConnectionString": "host=192.168.1.102;port=5432;database=FamilyTreeDB;username=postgres;password=Positive~1;", + "SQLConnectionString": "host=localhost;port=5432;database=FamilyTreeDB;username=postgres;password=Positive~1;", + "SQLConnectionString_vm": "host=192.168.1.240;port=5432;database=FamilyTreeDB;username=postgres;password=Positive~1;", "ImageFolder": "c:\\temp\\Family", "ImportFolder": "c:\\temp"