sozsoft-platform/api/modules/Sozsoft.SqlQueryManager/Sozsoft.SqlQueryManager.Application.Contracts/DatabaseObjectDto.cs

20 lines
575 B
C#
Raw Normal View History

2026-02-24 20:44:16 +00:00
namespace Sozsoft.SqlQueryManager.Application.Contracts;
public class DatabaseTableDto
{
public string SchemaName { get; set; }
public string TableName { get; set; }
public string DataSourceType { get; set; }
public string FullName => DataSourceType == "Postgresql"
? $"\"{SchemaName}\".\"{TableName}\""
: $"[{SchemaName}].[{TableName}]";
2026-02-24 20:44:16 +00:00
}
public class DatabaseColumnDto
{
public string ColumnName { get; set; }
public string DataType { get; set; }
public bool IsNullable { get; set; }
public int? MaxLength { get; set; }
}