예제 #1
0
 /// <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();
 }
예제 #2
0
        /// <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);
        }
예제 #3
0
        /// <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);
            }
        }
예제 #4
0
 /// <summary>
 /// 更新数据
 /// </summary>
 /// <param name="entity">数据实体</param>
 /// <returns></returns>
 /// <remarks>2013-09-25  黄志勇 创建</remarks>
 public abstract void Update(DsEasAssociation entity);
예제 #5
0
 /// <summary>
 /// 插入数据
 /// </summary>
 /// <param name="entity">实体</param>
 /// <returns>返回新的编号</returns>
 /// <remarks>2013-10-10 黄志勇 创建</remarks>
 public abstract int Insert(DsEasAssociation entity);
예제 #6
0
 /// <summary>
 /// 更新数据
 /// </summary>
 /// <param name="entity">数据实体</param>
 /// <returns></returns>
 /// <remarks>2013-09-25  黄志勇 创建</remarks>
 public void Update(DsEasAssociation entity)
 {
     IDsEasDao.Instance.Update(entity);
 }
예제 #7
0
 /// <summary>
 /// 插入数据
 /// </summary>
 /// <param name="entity">实体</param>
 /// <returns>返回新的编号</returns>
 /// <remarks>2013-10-10 黄志勇 创建</remarks>
 public int Insert(DsEasAssociation entity)
 {
     return(IDsEasDao.Instance.Insert(entity));
 }