sozsoft-platform/api/modules/Sozsoft.SqlQueryManager/Sozsoft.SqlQueryManager.Application.Contracts/DatabaseObjectDto.cs
2026-08-21 22:27:59 +03:00

19 lines
578 B
C#

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}]";
}
public class DatabaseColumnDto
{
public string ColumnName { get; set; }
public string DataType { get; set; }
public bool IsNullable { get; set; }
public int? MaxLength { get; set; }
}