42 lines
1.1 KiB
C#
42 lines
1.1 KiB
C#
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; }
|
|
}
|
|
|