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.
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace ZeroLevel.SqlServer
|
|
|
|
|
{
|
|
|
|
|
public sealed class SqlDbPrimaryKeyInfo : IEquatable<SqlDbPrimaryKeyInfo>
|
|
|
|
|
{
|
|
|
|
|
public string PrimaryKeyTable;
|
|
|
|
|
public string PrimaryKeyColumn;
|
|
|
|
|
|
|
|
|
|
public bool Equals(SqlDbPrimaryKeyInfo other)
|
|
|
|
|
{
|
|
|
|
|
return String.Compare(PrimaryKeyTable, other.PrimaryKeyTable, StringComparison.OrdinalIgnoreCase) == 0 &&
|
|
|
|
|
String.Compare(PrimaryKeyColumn, other.PrimaryKeyColumn, StringComparison.OrdinalIgnoreCase) == 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override int GetHashCode()
|
|
|
|
|
{
|
|
|
|
|
return PrimaryKeyTable.GetHashCode() ^ PrimaryKeyColumn.GetHashCode();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|