Ajout d'id pour référencer la solution et la base de données

pull/31/head
Clement CHIEU 1 year ago
parent b3109d1541
commit 3e4e96c7c9

@ -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;
}
}
Loading…
Cancel
Save