コード例 #1
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(SoilNutrientSoft.Model.FarmlandMSug model, Dictionary <SqlConnection, SqlTransaction> MyDict)
 {
     try
     {
         return(dal.Update(model, MyDict));
     }
     catch (Exception e)
     {
         throw e;
     }
 }
コード例 #2
0
        /// <summary>
        /// 分页获取数据列表
        /// </summary>
        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
        //{
        //return dal.GetList(PageSize,PageIndex,strWhere);
        //}

        #endregion  BasicMethod
        #region  ExtensionMethod

        /// <summary>
        /// 自己的增加一条数据
        /// </summary>
        public int Add(SoilNutrientSoft.Model.FarmlandMSug model, Dictionary <SqlConnection, SqlTransaction> MyDict, params SqlParameter[] cmdParms)
        {
            try
            {
                return(dal.Add(model, MyDict));
            }
            catch
            {
                throw;
            }
        }
コード例 #3
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int Add(SoilNutrientSoft.Model.FarmlandMSug model)
 {
     return(dal.Add(model));
 }