指定Tablename()后,FindAndCount的Find可以生效,Count不能 #1851

Open
opened 3 months ago by hsyan2008 · 0 comments

我定义了一个Model,他的Tablename是动态指定的,伪代码如下
m := &Model{}
m.tablename = "tablename_sufix"
var rs []*Model
session.Tablename(&Model{}).FindAndCount(&rs)
Find部分能正常执行,在Count环节会报错

我定义了一个Model,他的Tablename是动态指定的,伪代码如下 m := &Model{} m.tablename = "tablename_sufix" var rs []*Model `session.Tablename(&Model{}).FindAndCount(&rs)` Find部分能正常执行,在Count环节会报错
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.