48 lines
1.4 KiB
C#
48 lines
1.4 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 SqlViewDto : FullAuditedEntityDto<Guid>
|
|
{
|
|
public string ViewName { get; set; }
|
|
public string SchemaName { get; set; }
|
|
public string DisplayName { get; set; }
|
|
public string Description { get; set; }
|
|
public string ViewDefinition { 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 bool WithSchemaBinding { get; set; }
|
|
}
|
|
|
|
public class CreateSqlViewDto
|
|
{
|
|
public string ViewName { get; set; }
|
|
public string SchemaName { get; set; }
|
|
public string DisplayName { get; set; }
|
|
public string Description { get; set; }
|
|
public string ViewDefinition { get; set; }
|
|
public string DataSourceCode { get; set; }
|
|
public string Category { get; set; }
|
|
public bool WithSchemaBinding { get; set; }
|
|
}
|
|
|
|
public class UpdateSqlViewDto
|
|
{
|
|
public string DisplayName { get; set; }
|
|
public string Description { get; set; }
|
|
public string ViewDefinition { get; set; }
|
|
public string Category { get; set; }
|
|
public bool WithSchemaBinding { get; set; }
|
|
}
|
|
|
|
public class DeployViewDto
|
|
{
|
|
public Guid Id { get; set; }
|
|
public bool DropIfExists { get; set; }
|
|
}
|