Пример #1
0
 //-----------------Insert
 /// <summary>
 /// 如有同名返回-1,否则返回被插入ID;
 /// </summary>
 public int Insert(M_IDC_DomPrice model)
 {
     if (CheckIsExist(model.DomName) != null)
     {
         return(-1);
     }
     return(Sql.insert(strTableName, model.GetParameters(), BLLCommon.GetParas(model), BLLCommon.GetFields(model)));
 }
Пример #2
0
 //-----------------Update
 public bool UpdateByID(M_IDC_DomPrice model)
 {
     return(Sql.UpdateByIDs(strTableName, PK, model.ID.ToString(), BLLCommon.GetFieldAndPara(model), model.GetParameters()));
 }