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/SqlDbPrimaryKeyInfo.cs

22 lines
675 B

6 years ago
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();
}
}
}

Powered by TurnKey Linux.