From 81ded863ad2bc1af2a5cbbeb3064f5c8930941f1 Mon Sep 17 00:00:00 2001 From: steden <1470804@qq.com> Date: Fri, 26 Jul 2024 02:30:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=EF=BC=9AFill=E6=96=B9?= =?UTF-8?q?=E6=B3=95=EF=BC=8C=E5=8F=AF=E5=A1=AB=E5=85=85=E4=BB=BB=E6=84=8F?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tableSet.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tableSet.go b/tableSet.go index 773c295..9779e29 100644 --- a/tableSet.go +++ b/tableSet.go @@ -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