You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Framework/Connected.Data/Schema/Sql/IndexDescriptor.cs

19 lines
426 B

2 years ago
namespace Connected.Data.Schema.Sql
{
internal class IndexDescriptor
{
private List<string>? _columns;
public bool Unique { get; set; }
public string? Group { get; set; }
public List<string> Columns => _columns ??= new List<string>();
public override string ToString()
{
return string.IsNullOrWhiteSpace(Group) ? Columns[0] : Group;
}
}
}