Пример #1
0
        public bool TypeEqualsTo(IDbType type)
        {
            PgDbType pdt = type as PgDbType;

            if (pdt == null)
            {
                return(false);
            }
            return(this.DbType == pdt.DbType);
        }
Пример #2
0
 /// <summary>
 /// コンストラクタ、全要素を指定して初期化する
 /// </summary>
 /// <param name="name">DB上での列名</param>
 /// <param name="dbType">列の型</param>
 /// <param name="flags">列のオプションフラグ</param>
 public PgColumnDef(string name, PgDbType dbType, ColumnFlags flags)
 {
     this.Name   = name;
     this.DbType = dbType;
     this.Flags  = flags;
 }