2012-12-07 13:48:38 -01:00
|
|
|
using System.Collections.Generic;
|
2012-12-07 14:52:54 -01:00
|
|
|
using Umbraco.Core.Persistence.DatabaseAnnotations;
|
2012-11-30 15:01:52 -01:00
|
|
|
|
2012-12-07 13:48:38 -01:00
|
|
|
namespace Umbraco.Core.Persistence.DatabaseModelDefinitions
|
2012-11-30 15:01:52 -01:00
|
|
|
{
|
|
|
|
|
public class IndexDefinition
|
|
|
|
|
{
|
|
|
|
|
public IndexDefinition()
|
|
|
|
|
{
|
|
|
|
|
Columns = new List<IndexColumnDefinition>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public virtual string Name { get; set; }
|
|
|
|
|
public virtual string SchemaName { get; set; }
|
|
|
|
|
public virtual string TableName { get; set; }
|
2012-12-07 14:52:54 -01:00
|
|
|
public virtual string ColumnName { get; set; }
|
2012-11-30 15:01:52 -01:00
|
|
|
public virtual bool IsUnique { get; set; }
|
|
|
|
|
public bool IsClustered { get; set; }
|
|
|
|
|
public virtual ICollection<IndexColumnDefinition> Columns { get; set; }
|
2012-12-07 14:52:54 -01:00
|
|
|
public IndexTypes IndexType { get; set; }
|
2012-11-30 15:01:52 -01:00
|
|
|
}
|
|
|
|
|
}
|