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

        #endregion  BasicMethod
        #region  ExtensionMethod
        /// <summary>
        /// 自己的增加一条数据 Dictionary<SqlConnection, SqlTransaction> MyDict
        /// </summary>
        public int Add(SoilNutrientSoft.Model.CropsMeg model, Dictionary <SqlConnection, SqlTransaction> MyDict)
        {
            try
            {
                return(dal.Add(model, MyDict));
            }
            catch
            {
                throw;
            }
        }
Ejemplo n.º 3
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int  Add(SoilNutrientSoft.Model.CropsMeg model)
 {
     return(dal.Add(model));
 }