49 lines
1.6 KiB
C#
49 lines
1.6 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 SqlStoredProcedureDto : FullAuditedEntityDto<Guid>
|
|
{
|
|
public string ProcedureName { get; set; }
|
|
public string SchemaName { get; set; }
|
|
public string DisplayName { get; set; }
|
|
public string Description { get; set; }
|
|
public string ProcedureBody { get; set; }
|
|
public string DataSourceCode { get; set; }
|
|
public SqlQueryStatus Status { get; set; }
|
|
public string Category { get; set; }
|
|
public bool IsDeployed { get; set; }
|
|
public DateTime? LastDeployedAt { get; set; }
|
|
public string Parameters { get; set; }
|
|
public bool IsCustom { get; set; } // true = stored in database, false = native SQL Server object
|
|
}
|
|
|
|
public class CreateSqlStoredProcedureDto
|
|
{
|
|
public string ProcedureName { get; set; }
|
|
public string SchemaName { get; set; }
|
|
public string DisplayName { get; set; }
|
|
public string Description { get; set; }
|
|
public string ProcedureBody { get; set; }
|
|
public string DataSourceCode { get; set; }
|
|
public string Category { get; set; }
|
|
public string Parameters { get; set; }
|
|
}
|
|
|
|
public class UpdateSqlStoredProcedureDto
|
|
{
|
|
public string DisplayName { get; set; }
|
|
public string Description { get; set; }
|
|
public string ProcedureBody { get; set; }
|
|
public string Category { get; set; }
|
|
public string Parameters { get; set; }
|
|
}
|
|
|
|
public class DeployStoredProcedureDto
|
|
{
|
|
public Guid Id { get; set; }
|
|
public bool DropIfExists { get; set; }
|
|
}
|