December 5, 2017

Database Linq没有FirstOrDefaultAsync方法

使用Entity Framework操作数据库时,Context中的实体没有Async方法,需要引入System.Data.Entity这个命名空间。