/// <summary> /// 用户关注 /// </summary> /// <param name="loggingSesssionInfo"></param> /// <returns></returns> public string SetSignIn(LoggingSessionInfo loggingSesssionInfo) { //关注:openID,城市,性别,昵称 string content = string.Empty; #region 参数 string OpenID = Request["openID"].ToString().Trim(); string City = Request["city"].ToString().Trim(); string Gender = Request["gender"].ToString().Trim(); string VipName = Request["vipName"].ToString().Trim(); string IsShow = Request["isShow"].ToString().Trim(); #endregion #region 1.处理日志 VipShowLogEntity vipShowLogInfo = new VipShowLogEntity(); vipShowLogInfo.VipLogID = System.Guid.NewGuid().ToString().Replace("-", ""); vipShowLogInfo.OpenID = OpenID; vipShowLogInfo.City = City; vipShowLogInfo.IsShow = Convert.ToInt32(IsShow); VipShowLogBLL vipShowLogBll = new VipShowLogBLL(loggingSesssionInfo); vipShowLogBll.Create(vipShowLogInfo); #endregion #region 2.判断是新建还是修改 VipEntity vipInfo = new VipEntity(); #endregion return(content); }
public void Update(VipShowLogEntity pEntity, bool pIsUpdateNullField, IDbTransaction pTran) { _currentDAO.Update(pEntity, pIsUpdateNullField, pTran); }
/// <summary> /// 更新 /// </summary> /// <param name="pEntity">实体实例</param> /// <param name="pTran">事务实例,可为null,如果为null,则不使用事务来更新</param> public void Update(VipShowLogEntity pEntity, IDbTransaction pTran) { Update(pEntity, true, pTran); }
/// <summary> /// 在事务内创建一个新实例 /// </summary> /// <param name="pEntity">实体实例</param> /// <param name="pTran">事务实例,可为null,如果为null,则不使用事务来更新</param> public void Create(VipShowLogEntity pEntity, IDbTransaction pTran) { _currentDAO.Create(pEntity, pTran); }
/// <summary> /// 创建一个新实例 /// </summary> /// <param name="pEntity">实体实例</param> public void Create(VipShowLogEntity pEntity) { _currentDAO.Create(pEntity); }
/// <summary> /// 分页根据实体条件查询实体 /// </summary> /// <param name="pQueryEntity">以实体形式传入的参数</param> /// <param name="pOrderBys">排序组合</param> /// <returns>符合条件的实体集</returns> public PagedQueryResult <VipShowLogEntity> PagedQueryByEntity(VipShowLogEntity pQueryEntity, OrderBy[] pOrderBys, int pPageSize, int pCurrentPageIndex) { return(_currentDAO.PagedQueryByEntity(pQueryEntity, pOrderBys, pPageSize, pCurrentPageIndex)); }
/// <summary> /// 根据实体条件查询实体 /// </summary> /// <param name="pQueryEntity">以实体形式传入的参数</param> /// <param name="pOrderBys">排序组合</param> /// <returns>符合条件的实体集</returns> public VipShowLogEntity[] QueryByEntity(VipShowLogEntity pQueryEntity, OrderBy[] pOrderBys) { return(_currentDAO.QueryByEntity(pQueryEntity, pOrderBys)); }
/// <summary> /// 删除 /// </summary> /// <param name="pEntity"></param> public void Delete(VipShowLogEntity pEntity) { _currentDAO.Delete(pEntity); }
public void Update(VipShowLogEntity pEntity, bool pIsUpdateNullField) { _currentDAO.Update(pEntity, pIsUpdateNullField); }
/// <summary> /// 更新 /// </summary> /// <param name="pEntity">实体实例</param> public void Update(VipShowLogEntity pEntity) { Update(pEntity, true); }