diff --git a/Src/Asp.Net/SqlServerTest/Demo/Demo3_Insertable.cs b/Src/Asp.Net/SqlServerTest/Demo/Demo3_Insertable.cs index 6f692fb83..d75ac3ed2 100644 --- a/Src/Asp.Net/SqlServerTest/Demo/Demo3_Insertable.cs +++ b/Src/Asp.Net/SqlServerTest/Demo/Demo3_Insertable.cs @@ -91,6 +91,11 @@ namespace OrmTest object os = db.Queryable().Take(2).ToList(); db.InsertableByObject(os).ExecuteCommand(); + + db.InsertableByObject(o).IgnoreColumns("CustomId").ExecuteCommand(); + db.InsertableByObject(o).IgnoreColumns("CustomId").ExecuteCommandAsync().GetAwaiter().GetResult(); + var id=db.InsertableByObject(o).IgnoreColumns("CustomId").ExecuteReturnIdentity(); + var id2 = db.InsertableByObject(o).IgnoreColumns("CustomId").ExecuteReturnIdentityAsync().GetAwaiter().GetResult(); db.CodeFirst.InitTables(); Console.WriteLine("#### Insertable End ####");