/// <summary> /// 添加监测项信息 /// </summary> /// <param name="model">实体</param> /// <returns></returns> public bool AddItem(YY_RTU_ITEM model) { return(dt.Insert <YY_RTU_ITEM>("YY_RTU_ITEM", model)); }
/// <summary> /// 更新监测项信息 /// </summary> /// <param name="model">实体</param> /// <param name="Where">条件</param> /// <returns></returns> public bool UdpItem(YY_RTU_ITEM model, string Where) { return(dt.Update <YY_RTU_ITEM>("YY_RTU_ITEM", model, Where)); }