Пример #1
0
 //-----------------Insert
 public int Insert(M_IDC_DNSTable model)
 {
     return(Sql.insert(strTableName, model.GetParameters(), BLLCommon.GetParas(model), BLLCommon.GetFields(model)));
 }
Пример #2
0
 //-----------------Update
 /// <summary>
 /// 更新信息
 /// </summary>
 public bool UpdateModel(M_IDC_DNSTable model)
 {
     return(Sql.UpdateByIDs(strTableName, PK, model.ID.ToString(), BLLCommon.GetFieldAndPara(model), model.GetParameters()));
 }