Miner.Data.Access Assembly > Miner.Data.Access Namespace > DbCompare Class : Compare Method |
Values | Conditions |
---|---|
Less than 0 | x < y |
Zero | x == y |
Greater than 1 | x > y |
The values are converted into equivalent types before the comparison so that the result is type-agnostic (in this context we mean that the values of different types as not considered different just because of their type):
DbCompare.Compare((int)1, (decimal)1); // returns 0; DbCompare.Compare((int)1, "1"); // returns 0; DbCompare.Compare(true, "true"); // returns 0;
In order to use this function correctly it is important to understand its handling of null and DBNull. The following are some assumptions made by the Compare function and therefore the more specialized functions that are based upon it:
Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)
Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.