예제 #1
0
        private ISpecificType GetPostgreSqlTypeArray(DbTypeArray type, IMigrationProfile profile, IProgressInfo progress)
        {
            var res = (PostgreSqlTypeBase)GenericTypeToSpecific(type.ElementType, profile, progress);

            res.IsArray = true;
            return(res);
        }
예제 #2
0
        public DbTypeBase ToGenericType()
        {
            DbTypeBase res = ToGenericTypeNoArray();

            if (IsArray)
            {
                var ar = new DbTypeArray();
                ar.ElementType = res;
                return(ar);
            }
            else
            {
                return(res);
            }
        }