By public static


2014-08-01 18:55:47 8 Comments

The latest EF tutorial that goes through how to use EF 6 with MVC 5 seems to lean towards using asych calls to the database like:

Department department = await db.Departments.FindAsync(id);

Is this the new standard/best practice?

I'm not sure what the benefit is for this style of development with ASP.NET MVC.

Can someone comment on this pattern, is this the new standard that MS is promoting?

Related Questions

Sponsored Content

16 Answered Questions

[SOLVED] How to call asynchronous method from synchronous method in C#?

  • 2012-02-18 17:49:28
  • Tower
  • 631254 View
  • 861 Score
  • 16 Answer
  • Tags:   c# async-await

12 Answered Questions

[SOLVED] Calling the base constructor in C#

27 Answered Questions

[SOLVED] Why not inherit from List<T>?

14 Answered Questions

[SOLVED] Why is it important to override GetHashCode when Equals method is overridden?

  • 2008-12-16 13:41:18
  • David Basarab
  • 369929 View
  • 1444 Score
  • 14 Answer
  • Tags:   c# overriding hashcode

12 Answered Questions

[SOLVED] What does the [Flags] Enum Attribute mean in C#?

  • 2008-08-12 04:09:16
  • Brian Leahy
  • 478558 View
  • 1445 Score
  • 12 Answer
  • Tags:   c# enums flags

10 Answered Questions

[SOLVED] Call one constructor from another

  • 2010-10-24 16:06:31
  • Avi
  • 465815 View
  • 998 Score
  • 10 Answer
  • Tags:   c# constructor

18 Answered Questions

[SOLVED] Virtual member call in a constructor

4 Answered Questions

19 Answered Questions

[SOLVED] Why is Dictionary preferred over Hashtable in C#?

3 Answered Questions

[SOLVED] ASP.NET MVC modal dialog/popup best practice

Sponsored Content