Exemplo n.º 1
0
 public static bool EqualTypes(DbTypeBase t1, DbTypeBase t2, DbDiffOptions opts)
 {
     if (!opts.IgnoreSpecificData && !t1.SpecificData.EqualsDictionary(t2.SpecificData, opts.IgnoreDataTypeProperties))
     {
         opts.DiffLogger.Trace("Types {0}, {1}: different specific data: {2}; {3}", t1, t2, t1.SpecificData.Format(), t2.SpecificData.Format());
         return(false);
     }
     if (t1.Code != t2.Code)
     {
         opts.DiffLogger.Trace("Types {0}, {1}: different type code: {2}; {3}", t1, t2, t1.Code, t2.Code);
         return(false);
     }
     if (!XmlTool.PropertiesEquals(t1, t2, opts.DiffLogger))
     {
         return(false);
     }
     return(true);
 }