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(); ``` ---