sozsoft-platform/api/modules/Sozsoft.SqlQueryManager/Sozsoft.SqlQueryManager.Application.Contracts/DatabaseObjectDto.cs
2026-05-25 17:31:54 +03:00

19 lines
575 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; }
}