예제 #1
0
        public void OrmTest()
        {
            Prepare();

            var ormTest = new OrmTestRepository();

            var list = new List <OrmTest>();

            for (int i = 0; i < 2000; i++)
            {
                list.Add(new OrmTest
                {
                    Id = (i + 1) * 1000000 + (i + 1) * 100000 + i
                });
            }

            var j = ormTest.AsInsertable(list).ExecuteCommand();

            var results = ormTest.ToList();

            var k = ormTest.AsDeleteable(list).ExecuteCommand();
        }
예제 #2
0
        public void OrmTest()
        {
            var ormTest = new OrmTestRepository();

            var list = new List <OrmTest>();

            for (int i = 0; i < 2000; i++)
            {
                list.Add(new OrmTest
                {
                    Id = (i + 1) * 100000 + (i + 1) * 10000 + i
                });
            }

            _ = ormTest.AsInsertable(list).ExecuteCommand();

            _ = ormTest.ToList();

            _ = ormTest.AsDeleteable(list)
                .SkipIdempotentValid()
                .ExecuteCommand();
        }