/// <summary> /// 根据主键ID取得单一实体,如果没有找到则返回null /// </summary> /// <param name="id">实体的主键ID</param> /// <returns>Users实体对象</returns> public Users Single(int id) { return(dal.Single(id)); }