/// <summary> /// 更新数据 /// </summary> /// <param name="entity">数据实体</param> /// <returns></returns> /// <remarks>2013-10-10 黄志勇 创建</remarks> public override void Update(DsEasAssociation entity) { Context.Update("DsEasAssociation", entity) .AutoMap(o => o.SysNo, o => o.CreatedBy, o => o.CreatedDate) .Where("SysNo", entity.SysNo) .Execute(); }
/// <summary> /// 插入数据 /// </summary> /// <param name="entity">实体</param> /// <returns>返回新的编号</returns> /// <remarks>2013-10-10 黄志勇 创建</remarks> public override int Insert(DsEasAssociation entity) { var sysNo = Context.Insert("DsEasAssociation", entity) .AutoMap(o => o.SysNo) .ExecuteReturnLastId <int>("SysNo"); return(sysNo); }
/// <summary> /// 分销升舱成功后续检查 /// </summary> /// <param name="entity">分销商EAS关联</param> /// <returns></returns> /// <remarks>2013-10-10 黄志勇 创建</remarks> public void CheckEas(DsEasAssociation entity) { if (entity == null) { throw new ArgumentException("分销商EAS关联实体不能为空"); } var model = Get(entity.DealerMallSysNo); if (model == null) { //entity.Code = string.Empty; //entity.Status = 1; Insert(entity); } }
/// <summary> /// 更新数据 /// </summary> /// <param name="entity">数据实体</param> /// <returns></returns> /// <remarks>2013-09-25 黄志勇 创建</remarks> public abstract void Update(DsEasAssociation entity);
/// <summary> /// 插入数据 /// </summary> /// <param name="entity">实体</param> /// <returns>返回新的编号</returns> /// <remarks>2013-10-10 黄志勇 创建</remarks> public abstract int Insert(DsEasAssociation entity);
/// <summary> /// 更新数据 /// </summary> /// <param name="entity">数据实体</param> /// <returns></returns> /// <remarks>2013-09-25 黄志勇 创建</remarks> public void Update(DsEasAssociation entity) { IDsEasDao.Instance.Update(entity); }
/// <summary> /// 插入数据 /// </summary> /// <param name="entity">实体</param> /// <returns>返回新的编号</returns> /// <remarks>2013-10-10 黄志勇 创建</remarks> public int Insert(DsEasAssociation entity) { return(IDsEasDao.Instance.Insert(entity)); }