48 lines
1.5 KiB
C#
48 lines
1.5 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 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; }
|
|
}
|