2024-02-22 19:37:14 +00:00
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace BotSharp.Plugin.SqlDriver.Models;
|
|
|
|
|
|
|
|
|
|
public class LookupDictionary
|
|
|
|
|
{
|
2024-09-24 15:45:57 +00:00
|
|
|
[JsonPropertyName("sql_statement")]
|
2024-10-02 18:00:23 +00:00
|
|
|
public string SqlStatement { get; set; } = string.Empty;
|
2024-02-22 19:37:14 +00:00
|
|
|
|
2024-02-27 13:19:05 +00:00
|
|
|
[JsonPropertyName("reason")]
|
2024-10-02 18:00:23 +00:00
|
|
|
public string Reason { get; set; } = string.Empty;
|
2024-02-27 13:19:05 +00:00
|
|
|
|
2024-09-24 15:45:57 +00:00
|
|
|
[JsonPropertyName("table")]
|
2024-10-02 18:00:23 +00:00
|
|
|
public string Table { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return $"Sql: {SqlStatement}, Table: {Table}, Reason: {Reason}";
|
|
|
|
|
}
|
2024-02-22 19:37:14 +00:00
|
|
|
}
|