34 lines
1.1 KiB
C#
34 lines
1.1 KiB
C#
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Erp.SqlQueryManager.Domain.Shared;
|
|
using Volo.Abp.Application.Services;
|
|
|
|
namespace Erp.SqlQueryManager.Application.Contracts;
|
|
|
|
public interface ISqlTemplateAppService : IApplicationService
|
|
{
|
|
/// <summary>
|
|
/// Get all available query templates
|
|
/// </summary>
|
|
Task<List<SqlTemplateDto>> GetQueryTemplatesAsync();
|
|
|
|
/// <summary>
|
|
/// Get stored procedure template
|
|
/// </summary>
|
|
Task<string> GetStoredProcedureTemplateAsync(string procedureName, string schemaName = "dbo");
|
|
|
|
/// <summary>
|
|
/// Get view template
|
|
/// </summary>
|
|
Task<string> GetViewTemplateAsync(string viewName, string schemaName = "dbo", bool withSchemaBinding = false);
|
|
|
|
/// <summary>
|
|
/// Get function template
|
|
/// </summary>
|
|
Task<string> GetFunctionTemplateAsync(string functionName, SqlFunctionType functionType, string schemaName = "dbo");
|
|
|
|
/// <summary>
|
|
/// Get specific query template
|
|
/// </summary>
|
|
Task<string> GetQueryTemplateAsync(string templateType);
|
|
}
|