private static bool CompareTypes(StorageTypeInfo first, StorageTypeInfo second) { if (first == null || second == null) { return(false); } if (first.IsTypeUndefined || second.IsTypeUndefined) { return(true); } return(first.Type.ToNullable() == second.Type.ToNullable() && first.Length == second.Length && first.Scale == second.Scale && first.Precision == second.Precision); }
/// <summary> /// Initializes a new instance of this class. /// </summary> /// <param name="table">The parent table.</param> /// <param name="name">The column name.</param> /// <param name="type">Type of the column.</param> public StorageColumnInfo(TableInfo table, string name, StorageTypeInfo type) : this(table, name) { Type = type; }