diff --git a/README.md b/README.md index ee76e9b99..10d4db4d5 100644 --- a/README.md +++ b/README.md @@ -274,6 +274,18 @@ var ageP= new SugarParameter("@age", null, true);//isOutput=true var dt2 = db.Ado.UseStoredProcedure().GetDataTable("sp_school",nameP,ageP); ``` + ## 7.Saveable + Insert or Update +```cs +db.Saveable(entity).ExecuteReturnEntity(); +db.Saveable(new Student() { Name = "" }) + .InsertColumns(it=>it.Name) + .UpdateColumns(it=>new { it.Name,it.CreateTime } + .ExecuteReturnEntity(); + +``` + + ##### Priority level: AS>Add>Attribute ### 5.1 Add