예제 #1
0
            private static int CompareProperty(IPropertyMapping left, IPropertyMapping right)
            {
                if (left.GetType() == right.GetType())
                {
                    return(string.Compare(left.Name, right.Name, StringComparison.CurrentCulture));
                }

                if (left is CollectionMapping)
                {
                    return(1);
                }

                return(-1);
            }
예제 #2
0
            private static int CompareProperty(IPropertyMapping left, IPropertyMapping right)
            {
                if (left.GetType() == right.GetType())
                {
                    return string.Compare(left.Name, right.Name, StringComparison.CurrentCulture);
                }

                if (left is CollectionMapping)
                {
                    return 1;
                }

                return -1;
            }