Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zkh-balance opened this issue Apr 28, 2024 · 1 comment
Open

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

zkh-balance opened this issue Apr 28, 2024 · 1 comment

Comments

@zkh-balance
Copy link

问题描述及重现代码:

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
Copy link
Collaborator

2881099 commented Apr 28, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants