Beispiel #1
0
 /// <summary>
 /// 更新
 /// </summary>
 /// <param name="info"></param>
 /// <returns></returns>
 public static bool Update(M_Dictionary model)
 {
     return(Sql.UpdateByIDs(model.TbName, model.PK, model.DicID.ToString(), BLLCommon.GetFieldAndPara(model), model.GetParameters()));
 }
Beispiel #2
0
 /// <summary>
 /// 添加数据字典项目
 /// </summary>
 /// <param name="info"></param>
 /// <returns></returns>
 public static bool AddDic(M_Dictionary model)
 {
     return(Sql.insertID(model.TbName, model.GetParameters(), BLLCommon.GetParas(model), BLLCommon.GetFields(model)) > 0);
 }