using System.Collections.Generic; namespace Sozsoft.SqlQueryManager.Application.Contracts; public class ExecuteSqlQueryDto { public string QueryText { get; set; } public string DataSourceCode { get; set; } public Dictionary Parameters { get; set; } } public class SqlQueryExecutionResultDto { public bool Success { get; set; } public string Message { get; set; } public IEnumerable Data { get; set; } public int RowsAffected { get; set; } public long ExecutionTimeMs { get; set; } public Dictionary Metadata { get; set; } } /// /// Input for saving a T-SQL script file to DbMigrator Seeds/SqlData. /// public class SaveTableScriptDto { /// /// File name without extension (e.g. "Adm_T_Behavior"). Must not contain path separators. /// public string FileName { get; set; } /// /// The T-SQL script content (CREATE TABLE / ALTER TABLE etc.). /// public string SqlScript { get; set; } } /// /// Input for deleting seed files from DbMigrator Seeds/SqlData. /// public class DeleteSqlDataFilesDto { /// /// File names without extension (e.g. "Adm_T_Behavior"). /// Any invalid or unsafe values are ignored. /// public List FileNames { get; set; } = new(); } public class MoveSqlDataFileDto { public string DataDirectoryName { get; set; } = string.Empty; public string SourceRelativePath { get; set; } = string.Empty; public string TargetRelativePath { get; set; } = string.Empty; }