erp-platform/api/modules/Erp.SqlQueryManager/Erp.SqlQueryManager.Application.Contracts/SqlQueryDto.cs
2025-12-05 11:56:53 +03:00

65 lines
2 KiB
C#

using System;
using System.Collections.Generic;
using Erp.SqlQueryManager.Domain.Shared;
using Volo.Abp.Application.Dtos;
namespace Erp.SqlQueryManager.Application.Contracts;
public class SqlQueryDto : FullAuditedEntityDto<Guid>
{
public string Code { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public string QueryText { get; set; }
public string DataSourceCode { get; set; }
public SqlQueryStatus Status { get; set; }
public string Category { get; set; }
public string Tags { get; set; }
public DateTime? LastExecutedAt { get; set; }
public int ExecutionCount { get; set; }
public bool IsModifyingData { get; set; }
public string Parameters { get; set; }
}
public class CreateSqlQueryDto
{
public string Code { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public string QueryText { get; set; }
public string DataSourceCode { get; set; }
public string Category { get; set; }
public string Tags { get; set; }
public bool IsModifyingData { get; set; }
public string Parameters { get; set; }
}
public class UpdateSqlQueryDto
{
public string Code { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public string QueryText { get; set; }
public string DataSourceCode { get; set; }
public string Category { get; set; }
public string Tags { get; set; }
public bool IsModifyingData { get; set; }
public string Parameters { get; set; }
}
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; }
}