From 3e4e96c7c94e1419ddccbe746f253a9dd4ff52e7 Mon Sep 17 00:00:00 2001 From: Nestisse Date: Sat, 9 Mar 2024 09:47:37 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20d'id=20pour=20r=C3=A9f=C3=A9rencer=20la?= =?UTF-8?q?=20solution=20et=20la=20base=20de=20donn=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- API_SQLuedo/EntityFramework/InquiryEntity.cs | 25 +++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/API_SQLuedo/EntityFramework/InquiryEntity.cs b/API_SQLuedo/EntityFramework/InquiryEntity.cs index c77e521..3c43ee4 100644 --- a/API_SQLuedo/EntityFramework/InquiryEntity.cs +++ b/API_SQLuedo/EntityFramework/InquiryEntity.cs @@ -6,15 +6,22 @@ public class InquiryEntity public string Title { get; set; } public string Description { get; set; } public bool IsUser { get; set; } + public int IdDatabase { get; set; } public InquiryTableEntity Database { get; set; } + public int IdInquiryTable { get; set; } public SolutionEntity InquiryTable { get; set; } - public InquiryEntity() { } + + public InquiryEntity() + { + } public InquiryEntity(int id) { Id = id; } - public InquiryEntity(int id, string title, string description, bool isUser, InquiryTableEntity database, SolutionEntity inquiryTable) + + public InquiryEntity(int id, string title, string description, bool isUser, InquiryTableEntity database, + SolutionEntity inquiryTable) { Id = id; Title = title; @@ -24,7 +31,8 @@ public class InquiryEntity InquiryTable = inquiryTable; } - public InquiryEntity(string title, string description, bool isUser, InquiryTableEntity database, SolutionEntity inquiryTable) + public InquiryEntity(string title, string description, bool isUser, InquiryTableEntity database, + SolutionEntity inquiryTable) { Id = 0; Title = title; @@ -33,4 +41,15 @@ public class InquiryEntity Database = database; InquiryTable = inquiryTable; } + + public InquiryEntity(int id, string title, string description, bool isUser, int database, + int inquiryTable) + { + Id = id; + Title = title; + Description = description; + IsUser = isUser; + IdDatabase = database; + IdInquiryTable = inquiryTable; + } } \ No newline at end of file