Gallery verwendet Datenbank

- Menü: Fixed typo in Gallerie
- Datenbanken-Funktionen dokumentiert
This commit is contained in:
Simon Lübeß
2023-10-10 18:56:05 +02:00
parent 1b28481b5d
commit e6a2db0753
9 changed files with 94 additions and 63 deletions

View File

@ -66,6 +66,8 @@
<Build Include="dpo\Tables\WunschInfo.sql" />
<Build Include="dpo\StoredProcedures\spWunschInfo_Insert.sql" />
<Build Include="dpo\StoredProcedures\spBildInfo_UpdateFileName.sql" />
<Build Include="dpo\StoredProcedures\spBildInfo_GetAll.sql" />
<Build Include="dpo\StoredProcedures\spWunschInfo_Get.sql" />
</ItemGroup>
<ItemGroup>
<RefactorLog Include="KiKunstDatenbank.refactorlog" />

View File

@ -0,0 +1,6 @@
CREATE PROCEDURE [dbo].[spBildInfo_GetAll]
AS
BEGIN
SELECT Id, Datum, Dateiname, ImageModel, WunschId
FROM [dbo].[BildInfo];
END

View File

@ -0,0 +1,8 @@
CREATE PROCEDURE [dbo].[spWunschInfo_Get]
@Id INT
AS
BEGIN
SELECT Id, Wunsch, BildPrompt, BildBeschreibung, Datum, GPTModel
FROM [dbo].[WunschInfo]
WHERE Id = @Id;
END