/// <summary> /// 插入新闻 /// </summary> /// <param name="model">实体</param> /// <returns>返回受影响行</returns> /// <remarks>2013-01-14 苟治国 创建</remarks> public override int Insert(Model.FeNews model) { var result = Context.Insert <FeNews>("FeNews", model) .AutoMap(x => x.SysNo) .ExecuteReturnLastId <int>("SysNo"); return(result); }
/// <summary> /// 更新新闻 /// </summary> /// <param name="model">实体</param> /// <returns>返回受影响行</returns> /// <remarks>2013-01-14 苟治国 创建</remarks> public override int Update(Model.FeNews model) { int rowsAffected = Context.Update <Model.FeNews>("FeNews", model) .AutoMap(x => x.SysNo) .Where(x => x.SysNo) .Execute(); return(rowsAffected); }
/// <summary> /// 插入新闻 /// </summary> /// <param name="model">实体</param> /// <returns>返回受影响行</returns> /// <remarks>2013-01-14 苟治国 创建</remarks> public int Insert(Model.FeNews model) { return(IFeNewsDao.Instance.Insert(model)); }
/// <summary> /// 更新新闻 /// </summary> /// <param name="model">实体</param> /// <returns>返回受影响行</returns> /// <remarks>2013-01-14 苟治国 创建</remarks> public int Update(Model.FeNews model) { return(IFeNewsDao.Instance.Update(model)); }
/// <summary> /// 更新新闻 /// </summary> /// <param name="model">实体</param> /// <returns>返回受影响行</returns> /// <remarks>2013-01-14 苟治国 创建</remarks> public abstract int Update(Model.FeNews model);
/// <summary> /// 插入新闻 /// </summary> /// <param name="model">实体</param> /// <returns>返回受影响行</returns> /// <remarks>2013-01-14 苟治国 创建</remarks> public abstract int Insert(Model.FeNews model);