/// <summary> /// 获取所有没有软删除的数据 /// </summary> /// <returns></returns> public IQueryable <T> GetAll() { try { return(ctx.Set <T>().Where(e => e.IsDeleted == false)); } catch (Exception e) { throw; } }