/// <summary> /// 获取实体集合 /// </summary> /// <returns></returns> public List <T> GetAllList() { return(_dbContext.Set <T>().ToList()); }