コード例 #1
0
        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);
        }
コード例 #2
0
 /// <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;
 }