Добавьте файлы проекта.
This commit is contained in:
36
SQLVision.Core/Models/ExecutionHistoryItem.cs
Normal file
36
SQLVision.Core/Models/ExecutionHistoryItem.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SQLVision.Core.Models;
|
||||
|
||||
public class ExecutionHistoryItem
|
||||
{
|
||||
[JsonPropertyName("id")]
|
||||
public string Id { get; set; } = Guid.NewGuid().ToString();
|
||||
|
||||
[JsonPropertyName("scriptId")]
|
||||
public string ScriptId { get; set; } = string.Empty;
|
||||
|
||||
[JsonPropertyName("scriptName")]
|
||||
public string ScriptName { get; set; } = string.Empty;
|
||||
|
||||
[JsonPropertyName("executionTime")]
|
||||
public DateTime ExecutionTime { get; set; }
|
||||
|
||||
[JsonPropertyName("duration")]
|
||||
public TimeSpan Duration { get; set; }
|
||||
|
||||
[JsonPropertyName("success")]
|
||||
public bool Success { get; set; }
|
||||
|
||||
[JsonPropertyName("parameters")]
|
||||
public Dictionary<string, object> Parameters { get; set; } = new();
|
||||
|
||||
[JsonPropertyName("rowCount")]
|
||||
public int RowCount { get; set; }
|
||||
|
||||
[JsonPropertyName("errorMessage")]
|
||||
public string? ErrorMessage { get; set; }
|
||||
|
||||
[JsonPropertyName("executedSql")]
|
||||
public string? ExecutedSql { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user