private static void DelsertTest() { List<Detay> list = new List<Detay>(); for (int j = 1; j < 10; ++j) { list.Add(new Detay() { MasterId = 1, MenuId = j, Value = j * j * j }); } CommandAdapter cmd = new CommandAdapter(Util.Factory, ProviderMethod); int result = cmd.Delsert(list, BatchCommandMode.Batch, (where) => where.Equals(d => d.MasterId, 1)); Console.WriteLine(result + " - " + list[8].Id); }
private static async Task DelsertTest_Async() { List<Detay> list = new List<Detay>(); for (int j = 1; j < 10; ++j) { list.Add(new Detay() { MasterId = 1, MenuId = j, Value = j * j * j }); } CommandAdapter cmd = new CommandAdapter(Util_Oracle.Factory, ProviderMethod); int result = await cmd.DelsertAsync(list, (where) => where.Equals(d => d.MasterId, 1)); Console.WriteLine(result + " - " + list[8].Id); }