erp-platform/api/modules/Erp.SqlQueryManager/Erp.SqlQueryManager.Application.Contracts/SqlViewDto.cs
2025-12-05 11:56:53 +03:00

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; }
}