Skip to content

Commit

Permalink
新增:Fill方法,可填充任意类型
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Jul 25, 2024
1 parent 39307ea commit 81ded86
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tableSet.go
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,11 @@ func (receiver *TableSet[Table]) ToList() collections.List[Table] {
return collections.NewList(lst...)
}

// Fill 填充结果集
func (receiver *TableSet[Table]) Fill(dest any, conds ...any) {
receiver.getOrCreateSession().getClient().Find(dest, conds...)
}

// ToArray 返回结果集
func (receiver *TableSet[Table]) ToArray() []Table {
var lst []Table
Expand Down

0 comments on commit 81ded86

Please sign in to comment.