/// <summary> /// 删除 /// </summary> /// <param name="mod"></param> /// <returns></returns> public void DeleteMod(Model.Pos.DsPosWebSocketManage mod) { IDsPosWebSocketManageDao.Instance.DeleteMod(mod); }
/// <summary> /// 更改状态 /// </summary> /// <param name="mod"></param> /// <returns></returns> public void ChangeStatus(Model.Pos.DsPosWebSocketManage mod) { IDsPosWebSocketManageDao.Instance.ChangeStatus(mod); }
/// <summary> /// 添加 /// </summary> /// <param name="mod"></param> /// <returns></returns> public int InsertMod(Model.Pos.DsPosWebSocketManage mod) { return(IDsPosWebSocketManageDao.Instance.InsertMod(mod)); }
/// <summary> /// 更改状态 /// </summary> /// <param name="mod"></param> /// <returns></returns> public override void ChangeStatus(Model.Pos.DsPosWebSocketManage mod) { string sql = " update DsPosWebSocketManage set WS_Status='" + mod.WS_Status + "' where SysNo = '" + mod.SysNo + "' "; Context.Sql(sql).Execute(); }
/// <summary> /// 删除 /// </summary> /// <param name="mod"></param> /// <returns></returns> public override void DeleteMod(Model.Pos.DsPosWebSocketManage mod) { Context.Delete("DsPosWebSocketManage", mod).Where(p => p.SysNo).Execute(); }
/// <summary> /// 修改 /// </summary> /// <param name="mod"></param> /// <returns></returns> public override void UpdateMod(Model.Pos.DsPosWebSocketManage mod) { Context.Update("DsPosWebSocketManage", mod).AutoMap(p => p.SysNo).Where(p => p.SysNo).Execute(); }
/// <summary> /// 添加 /// </summary> /// <param name="mod"></param> /// <returns></returns> public override int InsertMod(Model.Pos.DsPosWebSocketManage mod) { return(Context.Insert("DsPosWebSocketManage", mod).AutoMap(p => p.SysNo).ExecuteReturnLastId <int>()); }