Добавьте файлы проекта.
This commit is contained in:
41
SQLVision.Core/Models/ExecutionResult.cs
Normal file
41
SQLVision.Core/Models/ExecutionResult.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using System.Data;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SQLVision.Core.Models;
|
||||
|
||||
public class ExecutionResult
|
||||
{
|
||||
[JsonPropertyName("data")]
|
||||
public DataSet? Data { get; set; }
|
||||
|
||||
[JsonPropertyName("isSuccess")]
|
||||
public bool IsSuccess { get; set; }
|
||||
|
||||
[JsonPropertyName("errorMessage")]
|
||||
public string? ErrorMessage { get; set; }
|
||||
|
||||
[JsonPropertyName("executionTime")]
|
||||
public TimeSpan ExecutionTime { get; set; }
|
||||
|
||||
[JsonPropertyName("isFromCache")]
|
||||
public bool IsFromCache { get; set; }
|
||||
|
||||
[JsonPropertyName("executionDate")]
|
||||
public DateTime ExecutionDate { get; set; } = DateTime.UtcNow;
|
||||
|
||||
[JsonPropertyName("parameters")]
|
||||
public Dictionary<string, object> Parameters { get; set; } = new();
|
||||
|
||||
[JsonPropertyName("executedSql")]
|
||||
public string ExecutedSql { get; set; } = string.Empty;
|
||||
|
||||
[JsonPropertyName("rowCount")]
|
||||
public int RowCount { get; set; }
|
||||
|
||||
[JsonPropertyName("metrics")]
|
||||
public Dictionary<string, object> Metrics { get; set; } = new();
|
||||
|
||||
[JsonPropertyName("connectionName")]
|
||||
public string? ConnectionName { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user