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

xorm的字段映射在服务打包部署后无效 #204

Closed
Georgeyjy opened this issue May 28, 2020 · 1 comment
Closed

xorm的字段映射在服务打包部署后无效 #204

Georgeyjy opened this issue May 28, 2020 · 1 comment

Comments

@Georgeyjy
Copy link

我在测试服务时定义了一个struct如下

type User struct {
	Id       int32    `xorm:"id not null pk autoincr INTEGER"`
	UserName string `xorm:"username VARCHAR(255)"`
	Account  int32 `xorm:"account INTEGER"`
}

在本地服务器测试的时候可以将UserName映射到数据库中的username字段
但是当我打包服务上传到服务器执行client时则映射无效,但xorm的其他功能正常
可能有什么解决方法呢?

@tarscloudbot
Copy link
Contributor

该issue长期未更新。如果问题依旧没解决,欢迎重新打开issue。TARS社区有您更精彩。

Thanks for your supporting. The issue has not been updated for a long time. If the problem is still not resolved, welcome to reopen the issue.

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