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.
Zero/ZeroLevel.SqlServer/SqlServerEntities/IndexInfo.cs

30 lines
797 B

6 years ago
using System;
using System.Collections.Generic;
using ZeroLevel.Services.Collections;
namespace ZeroLevel.SqlServer
{
public class IndexInfo : IEquatable<IndexInfo>
{
public string Name;
public List<string> Columns = new List<string>();
public bool IsUnique;
public bool IsPrimaryKey;
public bool Equals(IndexInfo other)
{
bool eq = true;
eq &= String.Compare(Name, other.Name, StringComparison.Ordinal) == 0;
eq &= Columns.NoOrderingEquals(other.Columns);
eq &= IsUnique == other.IsUnique;
eq &= IsPrimaryKey == other.IsPrimaryKey;
return eq;
}
public override int GetHashCode()
{
return Name.GetHashCode();
}
}
}

Powered by TurnKey Linux.