public static SqlBoolean LessThanOrEqual(SqlGuid x, SqlGuid y)
 {
     return(x <= y);
 }
 public static SqlBoolean NotEquals(SqlGuid x, SqlGuid y)
 {
     return(x != y);
 }
 public static SqlBoolean GreaterThanOrEqual(SqlGuid x, SqlGuid y)
 {
     return(x >= y);
 }
 public static SqlBoolean LessThan(SqlGuid x, SqlGuid y)
 {
     return(x < y);
 }
 public static SqlBoolean Equals(SqlGuid x, SqlGuid y)
 {
     return(x == y);
 }
 public static SqlBoolean GreaterThan(SqlGuid x, SqlGuid y)
 {
     return(x > y);
 }
 public static SqlBoolean LessThanOrEqual(SqlGuid x, SqlGuid y)
 {
     return (x <= y);
 }
 public static SqlBoolean NotEquals(SqlGuid x, SqlGuid y)
 {
     return (x != y);
 }
 public static SqlBoolean LessThan(SqlGuid x, SqlGuid y)
 {
     return (x < y);
 }
Beispiel #10
0
 public static SqlBoolean GreaterThanOrEqual(SqlGuid x, SqlGuid y)
 {
     return (x >= y);
 }
Beispiel #11
0
 public static SqlBoolean GreaterThan(SqlGuid x, SqlGuid y)
 {
     return (x > y);
 }
Beispiel #12
0
 public static SqlBoolean Equals(SqlGuid x, SqlGuid y)
 {
     return (x == y);
 }
Beispiel #13
0
        public int CompareTo(SqlGuid value)
        {
            if (value.IsNull)
            {
                return 1;
            }
            else
            {
                // LAMESPEC : ms.net implementation actually compares all the 16 bytes.
                // This code is kept for future changes, if required.
                /*
				{
					//MSDN documentation says that CompareTo is different from 
					//Guid's CompareTo. It uses the SQL Server behavior where
                                        //only the last 6 bytes of value are evaluated	
					byte[] compareValue = ((SqlGuid)value).GetLastSixBytes();
					byte[] currentValue = GetLastSixBytes();
					for (int i = 0; i < 6; i++)
					{
						if (currentValue[i] != compareValue[i]) {
			                              return Compare(currentValue[i], compareValue[i]);
                        			}
					}
			                return 0;
				}
                                */
                return this.value.CompareTo(value.Value);
            }
        }