/// 更新数据 /// </summary> /// <param name="info">数据表实体</param> public static bool UpdateStorageInfo(StorageInfo info) { try { return(StorageDAL.UpdateStorageInfo(info)); } catch { throw; } }
/// <summary> /// 根据 主键 获取一个实体对象 /// <param name="GrainID">主键</param> /// </summary> public static StorageInfo GetStorageInfoById(int GrainID) { try { return(StorageDAL.GetStorageInfoById(GrainID)); } catch { throw; } }
/// 添加数据 /// </summary> /// <param name="info">数据表实体对象</param> public static bool AddStorage(StorageInfo info) { try { return(StorageDAL.AddStorage(info)); } catch { throw; } }
/// <summary> /// 获取所有信息集合 /// </summary> /// <returns>List集合</returns> public static List <StorageInfo> GetStorageInfoList(string where) { try { return(StorageDAL.GetStorageInfoList(where)); } catch { throw; } }