Example #1
0
        protected void AddFieldMapping(EntityFieldMapping mapping)
        {
            if (null == m_FieldMap)
            {
                throw new ArgumentNullException("EntityFieldMapping");
            }

            int pos = m_FieldMap.BinarySearch(mapping);

            if (pos < 0)
            {
                pos = ~pos;
            }

            m_FieldMap.Insert(pos, mapping);
        }
Example #2
0
 public int CompareTo(EntityFieldMapping other)
 {
     return(CompareTo(other.DbField));
 }