From e24ab4f2d4c7dac4a74eb57cc4e0b275d8138055 Mon Sep 17 00:00:00 2001 From: 2881099 <2881099@qq.com> Date: Wed, 29 Jun 2022 10:33:27 +0800 Subject: [PATCH] update --- 骚操作.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/骚操作.md b/骚操作.md index 7436f4a..055a2fe 100644 --- a/骚操作.md +++ b/骚操作.md @@ -59,6 +59,17 @@ repo.AsType(实体类型); repo.Insert(..); repo.Update(..); repo.Delete(..); +repo.InsertOrUpdate(..); + +//或者字典 +var dic = new Dictionary(); +dic.Add("id", 1); +dic.Add("name", "xxxx"); + +fsql.InsertDict(dic).AsTable("table1").ExecuteAffrows(); +fsql.UpdateDict(dic).AsTable("table1").WherePrimary("id").ExecuteAffrows(); +fsql.DeleteDict(dic).AsTable("table1").ExecuteAffrows(); +fsql.InsertOrUpdateDict(dic).AsTable("table1").WherePrimary("id").ExecuteAffrows(); ``` ---