Quantcast
Channel: entityframework Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1793

New Post: Entity Framework 6.1.0 SaveChangesAsync

$
0
0
I think it's a bug in EF 6.1.0 because this similar async example works fine:
class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Before Async");
            TestGoogle().Wait();
            Console.WriteLine("After Async");
            Console.ReadKey();
        }

        private static async Task TestGoogle()
        {
            using (WebClient client = new WebClient())
            {
                
                Uri googleUrl = new Uri(@"http://www.google.com");
                string page = await client.DownloadStringTaskAsync(googleUrl);

                Console.WriteLine(page);
            }
        }
    }

Viewing all articles
Browse latest Browse all 1793

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>