예제 #1
0
        public static void TestEfInsertionExtenstion()
        {
            var list = EfInsertionTests.GeneratePosts();

            EfInsertionTests.Save(list, false);
            EfInsertionTests.Save(list);
        }
예제 #2
0
        public static Task TestEfInsertionExtenstionAsync(CancellationToken cancellationToken = default)
        {
            var posts = EfInsertionTests.GeneratePosts();
            var blogs = EfInsertionTests.GenerateBlogs();
            var t1    = EfInsertionTests.SaveAllAsync(posts, blogs, false, false, cancellationToken);
            var t2    = EfInsertionTests.SaveAllAsync(posts, blogs, true, false, cancellationToken);

            return(Task.WhenAll(t1, t2));
        }