dotnetcore / FreeSql

🦄 .NET aot orm, C# orm, VB.NET orm, Mysql orm, Postgresql orm, SqlServer orm, Oracle orm, Sqlite orm, Firebird orm, 达梦 orm, 人大金仓 orm, 神通 orm, 翰高 orm, 南大通用 orm, 虚谷 orm, 国产 orm, Clickhouse orm, QuestDB orm, MsAccess orm.
http://freesql.net
MIT License
3.99k stars 842 forks source link

pgsql 使用freesql生成器生成数组类型错误 #1798

Open zkh-balance opened 3 weeks ago

zkh-balance commented 3 weeks ago

问题描述及重现代码:

pgsql type字段为int 维度是1;
dbfirst 生成的Dbtype是,DbType = "int" ; 应该是 DbType = "int[]" 或者不生成DbType
        /// <summary>
        /// 类型
        /// </summary>
        [JsonProperty, Column(Name = "type",DbType = "int" )]
        public int[] Type { get; set; }

数据库版本

select version(); version

PostgreSQL 14.6 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44), 64-bit (1 row)

安装的Nuget包

.net framework/. net core? 及具体版本

<TargetFramework>net6.0</TargetFramework>
2881099 commented 3 weeks ago

暂时,先修改模板重新生成解决