Provide a generic comparer for our entity objects.
Inheritance: IComparer
        /// <summary>
        /// Performs a case-insensitive comparison of two objects of the same type and returns a value indicating whether one is less than, equal to, or greater than the other.
        /// </summary>
        /// <param name="a">The first object to compare.</param>
        /// <param name="b">The second object to compare.</param>
        /// <returns></returns>
        public int Compare(TimestampPk a, TimestampPk b)
        {
            EntityPropertyComparer entityPropertyComparer = new EntityPropertyComparer(this.whichComparison.ToString());

            return(entityPropertyComparer.Compare(a, b));
        }
Exemple #2
0
        /// <summary>
        /// Performs a case-insensitive comparison of two objects of the same type and returns a value indicating whether one is less than, equal to, or greater than the other.
        /// </summary>
        /// <param name="a">The first object to compare.</param>
        /// <param name="b">The second object to compare.</param>
        /// <returns></returns>
        public int Compare(AwBuildVersion a, AwBuildVersion b)
        {
            EntityPropertyComparer entityPropertyComparer = new EntityPropertyComparer(this.whichComparison.ToString());

            return(entityPropertyComparer.Compare(a, b));
        }
Exemple #3
0
        /// <summary>
        /// Performs a case-insensitive comparison of two objects of the same type and returns a value indicating whether one is less than, equal to, or greater than the other.
        /// </summary>
        /// <param name="a">The first object to compare.</param>
        /// <param name="b">The second object to compare.</param>
        /// <returns></returns>
        public int Compare(NullFkeyChild a, NullFkeyChild b)
        {
            EntityPropertyComparer entityPropertyComparer = new EntityPropertyComparer(this.whichComparison.ToString());

            return(entityPropertyComparer.Compare(a, b));
        }
        /// <summary>
        /// Performs a case-insensitive comparison of two objects of the same type and returns a value indicating whether one is less than, equal to, or greater than the other.
        /// </summary>
        /// <param name="a">The first object to compare.</param>
        /// <param name="b">The second object to compare.</param>
        /// <returns></returns>
        public int Compare(TestVariant a, TestVariant b)
        {
            EntityPropertyComparer entityPropertyComparer = new EntityPropertyComparer(this.whichComparison.ToString());

            return(entityPropertyComparer.Compare(a, b));
        }
Exemple #5
0
        /// <summary>
        /// Performs a case-insensitive comparison of two objects of the same type and returns a value indicating whether one is less than, equal to, or greater than the other.
        /// </summary>
        /// <param name="a">The first object to compare.</param>
        /// <param name="b">The second object to compare.</param>
        /// <returns></returns>
        public int Compare(Illustration a, Illustration b)
        {
            EntityPropertyComparer entityPropertyComparer = new EntityPropertyComparer(this.whichComparison.ToString());

            return(entityPropertyComparer.Compare(a, b));
        }
Exemple #6
0
        /// <summary>
        /// Performs a case-insensitive comparison of two objects of the same type and returns a value indicating whether one is less than, equal to, or greater than the other.
        /// </summary>
        /// <param name="a">The first object to compare.</param>
        /// <param name="b">The second object to compare.</param>
        /// <returns></returns>
        public int Compare(TestIssue117Tableb a, TestIssue117Tableb b)
        {
            EntityPropertyComparer entityPropertyComparer = new EntityPropertyComparer(this.whichComparison.ToString());

            return(entityPropertyComparer.Compare(a, b));
        }
Exemple #7
0
        /// <summary>
        /// Performs a case-insensitive comparison of two objects of the same type and returns a value indicating whether one is less than, equal to, or greater than the other.
        /// </summary>
        /// <param name="a">The first object to compare.</param>
        /// <param name="b">The second object to compare.</param>
        /// <returns></returns>
        public int Compare(ProductCategory a, ProductCategory b)
        {
            EntityPropertyComparer entityPropertyComparer = new EntityPropertyComparer(this.whichComparison.ToString());

            return(entityPropertyComparer.Compare(a, b));
        }
Exemple #8
0
        /// <summary>
        /// Performs a case-insensitive comparison of two objects of the same type and returns a value indicating whether one is less than, equal to, or greater than the other.
        /// </summary>
        /// <param name="a">The first object to compare.</param>
        /// <param name="b">The second object to compare.</param>
        /// <returns></returns>
        public int Compare(JobCandidate a, JobCandidate b)
        {
            EntityPropertyComparer entityPropertyComparer = new EntityPropertyComparer(this.whichComparison.ToString());

            return(entityPropertyComparer.Compare(a, b));
        }
        /// <summary>
        /// Performs a case-insensitive comparison of two objects of the same type and returns a value indicating whether one is less than, equal to, or greater than the other.
        /// </summary>
        /// <param name="a">The first object to compare.</param>
        /// <param name="b">The second object to compare.</param>
        /// <returns></returns>
        public int Compare(ScrapReason a, ScrapReason b)
        {
            EntityPropertyComparer entityPropertyComparer = new EntityPropertyComparer(this.whichComparison.ToString());

            return(entityPropertyComparer.Compare(a, b));
        }
        /// <summary>
        /// Performs a case-insensitive comparison of two objects of the same type and returns a value indicating whether one is less than, equal to, or greater than the other.
        /// </summary>
        /// <param name="a">The first object to compare.</param>
        /// <param name="b">The second object to compare.</param>
        /// <returns></returns>
        public int Compare(ContactType a, ContactType b)
        {
            EntityPropertyComparer entityPropertyComparer = new EntityPropertyComparer(this.whichComparison.ToString());

            return(entityPropertyComparer.Compare(a, b));
        }