21 lines
604 B
C#
21 lines
604 B
C#
|
|
using System.Collections.Generic;
|
||
|
|
|
||
|
|
namespace Sozsoft.SqlQueryManager.Application.Contracts;
|
||
|
|
|
||
|
|
public class ExecuteSqlQueryDto
|
||
|
|
{
|
||
|
|
public string QueryText { get; set; }
|
||
|
|
public string DataSourceCode { get; set; }
|
||
|
|
public Dictionary<string, object> Parameters { get; set; }
|
||
|
|
}
|
||
|
|
|
||
|
|
public class SqlQueryExecutionResultDto
|
||
|
|
{
|
||
|
|
public bool Success { get; set; }
|
||
|
|
public string Message { get; set; }
|
||
|
|
public IEnumerable<dynamic> Data { get; set; }
|
||
|
|
public int RowsAffected { get; set; }
|
||
|
|
public long ExecutionTimeMs { get; set; }
|
||
|
|
public Dictionary<string, object> Metadata { get; set; }
|
||
|
|
}
|