29 lines
762 B
C#
29 lines
762 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using Volo.Abp.Application.Dtos;
|
|
using Volo.Abp.Application.Services;
|
|
|
|
namespace Erp.SqlQueryManager.Application.Contracts;
|
|
|
|
public interface ISqlFunctionAppService : ICrudAppService<
|
|
SqlFunctionDto,
|
|
Guid,
|
|
PagedAndSortedResultRequestDto,
|
|
CreateSqlFunctionDto,
|
|
UpdateSqlFunctionDto>
|
|
{
|
|
/// <summary>
|
|
/// Deploy function to database
|
|
/// </summary>
|
|
Task<SqlQueryExecutionResultDto> DeployAsync(DeployFunctionDto input);
|
|
|
|
/// <summary>
|
|
/// Check if function exists in database
|
|
/// </summary>
|
|
Task<bool> CheckExistsAsync(Guid id);
|
|
|
|
/// <summary>
|
|
/// Drop function from database
|
|
/// </summary>
|
|
Task<SqlQueryExecutionResultDto> DropAsync(Guid id);
|
|
}
|