示例#1
0
 public bool Equals(NativeSQLQueryScalarReturn other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other.columnAlias, columnAlias));
 }
		public bool Equals(NativeSQLQueryScalarReturn other)
		{
			if (ReferenceEquals(null, other))
			{
				return false;
			}
			if (ReferenceEquals(this, other))
			{
				return true;
			}
			return Equals(other.columnAlias, columnAlias);
		}
		private void ProcessScalarReturn(NativeSQLQueryScalarReturn typeReturn) {}
		public void EqualsByAlias()
		{
			var sr1 = new NativeSQLQueryScalarReturn("myAlias", NHibernateUtil.Int32);
			var sr2 = new NativeSQLQueryScalarReturn("myAlias", NHibernateUtil.Int32);
			Assert.AreEqual(sr1, sr2);
		}
		public void HashCodeByAlias()
		{
			var sr1 = new NativeSQLQueryScalarReturn("myAlias", NHibernateUtil.Int32);
			var sr2 = new NativeSQLQueryScalarReturn("myAlias", NHibernateUtil.Int32);
			Assert.AreEqual(sr1.GetHashCode(), sr2.GetHashCode());
		}