From a21b994af4adcf7d698ae8f947e9d2893ddd59e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=9C=E7=B3=96=E7=BD=91?= <610262374@qq.com> Date: Sun, 10 Oct 2021 23:29:57 +0800 Subject: [PATCH] Update README.md --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b77a9fe10..18454fca6 100644 --- a/README.md +++ b/README.md @@ -153,10 +153,16 @@ db.Queryable((i, o) => i.OrderId == o.Id) ``` -### Feature7 Insert or update +### Feature7 : Insert or update +insert or update ```cs var x = Db.Storageable(list2).ToStorage(); x.AsInsertable.ExecuteCommand(); x.AsUpdateable.ExecuteCommand(); ``` +insert into not exists +```cs +var x = Db.Storageable(list).SplitInsert(it => !it.Any()).ToStorage() +x.AsInsertable.ExecuteCommand(); +```