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

xugu虚谷数据库字段长度同步错误 #1934

Open
cfires opened this issue Nov 28, 2024 · 0 comments
Open

xugu虚谷数据库字段长度同步错误 #1934

cfires opened this issue Nov 28, 2024 · 0 comments

Comments

@cfires
Copy link

cfires commented Nov 28, 2024

问题描述及重现代码:

代码中字段长度写的64,生成到数据库的字段长度并不是期望的64,而是统一的255,然后就报错“字段Id非空,不能转换为精度范围更小的数据类型”

/// <summary>
/// 主键
/// </summary>
[Snowflake]
[Description("主键")]
[Column(Name = "ID", Position = 1, StringLength = 64, IsPrimary = true)]
public string Id { get; set; }

数据库版本

xugu11

安装的Nuget包

FreeSql.All(3.5.100-preview20241127)和FreeSql.Provider.Xugu(3.5.100-preview20241127)

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

.Net8

@cfires cfires changed the title xugu虚谷数据字段长度同步错误 xugu虚谷数据库字段长度同步错误 Nov 28, 2024
2881099 added a commit that referenced this issue Nov 29, 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

1 participant